@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)
Deprecated.
|
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 file@Deprecated void mkdir(Path path)
This method will be removed in future versions.
Methods setContents(org.eclipse.xtend.lib.macro.file.Path, java.lang.CharSequence)
and setContentsAsStream(Path, InputStream)
create folders for all parents if they don't exist.
path
- the path to the filevoid delete(Path path)
path
-