e3c53441f093bd04bbb855bd9a6ac7929912832e
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / ClientPutDiskDirCommand.java
1 package net.pterodactylus.fcp.quelaton;
2
3 import java.io.File;
4 import java.util.Optional;
5
6 import net.pterodactylus.fcp.Key;
7
8 /**
9  * FCP command that inserts a directory from the filesystem local to the node into Freenet.
10  *
11  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
12  */
13 public interface ClientPutDiskDirCommand {
14
15         WithUri fromDirectory(File directory);
16
17         interface WithUri {
18
19                 Executable<Optional<Key>> uri(String uri);
20
21         }
22
23 }