@Beta public interface MutableFileSystemSupport extends FileSystemSupport
Modifier and Type | Method and Description |
---|---|
void |
delete(Path path)
Deletes the file or folder the given path points to.
|
void |
mkdir(Path path)
Creates a directory for the given path and all its parents if necessary.
|
void |
setContents(Path path,
java.lang.CharSequence contents)
Writes the given contents to the given path.
|
void |
setContentsAsStream(Path path,
java.io.InputStream source)
Sets the contents of this file to the bytes in the given input stream.
|
exists, getCharset, getChildren, getContents, getContentsAsStream, getLastModification, isFile, isFolder, toURI
void setContents(Path path, java.lang.CharSequence contents)
path
- the path to write the contents tocontents
- the contents of the filevoid setContentsAsStream(Path path, java.io.InputStream source)
path
- the path to the filesource
- an input stream containing the new contents of the filevoid mkdir(Path path)
path
- the path to the filevoid delete(Path path)
path
-