public static interface AbstractFileSystem.Change extends Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID
Deprecated.
Only public by accident.
|
Modifier and Type | Method and Description |
---|---|
void |
createData(String name)
Create new data file.
|
void |
createFolder(String name)
Create new folder.
|
void |
delete(String name)
Delete a file.
|
void |
rename(String oldName,
String newName)
Rename a file.
|
@Deprecated static final long serialVersionUID
void createFolder(String name) throws IOException
name
- full name of new folder, e.g. topfolder/newfolder
IOException
- if the operation failsvoid createData(String name) throws IOException
name
- full name of the file, e.g. path/from/root/filename.ext
IOException
- if the file cannot be created (e.g. already exists)void rename(String oldName, String newName) throws IOException
oldName
- old name of the file; fully qualifiednewName
- new name of the file; fully qualifiedIOException
- if it could not be renamedvoid delete(String name) throws IOException
name
- name of file; fully qualifiedIOException
- if the file could not be deleted