public interface LocalFileOperationsHandler
| Modifier and Type | Method and Description |
|---|---|
void |
afterDone(ThrowableConsumer<LocalFileOperationsHandler,java.io.IOException> invoker) |
java.io.File |
copy(VirtualFile file,
VirtualFile toDir,
java.lang.String copyName)
Intercepts the copying of a file.
|
boolean |
createDirectory(VirtualFile dir,
java.lang.String name)
Intercepts the creation of a directory.
|
boolean |
createFile(VirtualFile dir,
java.lang.String name)
Intercepts the creation of a file.
|
boolean |
delete(VirtualFile file)
Intercepts the deletion of a file.
|
boolean |
move(VirtualFile file,
VirtualFile toDir)
Intercepts the movement of a file.
|
boolean |
rename(VirtualFile file,
java.lang.String newName)
Intercepts the renaming of a file.
|
boolean delete(VirtualFile file) throws java.io.IOException
file - the file being deleted.java.io.IOExceptionboolean move(VirtualFile file, VirtualFile toDir) throws java.io.IOException
file - the file being moved.toDir - the destination directory.java.io.IOExceptionjava.io.File copy(VirtualFile file, VirtualFile toDir, java.lang.String copyName) throws java.io.IOException
file - the file being copied.toDir - the destination directory.copyName - the name for the copyjava.io.IOExceptionboolean rename(VirtualFile file, java.lang.String newName) throws java.io.IOException
file - the file being renamed.newName - the new name.java.io.IOExceptionboolean createFile(VirtualFile dir, java.lang.String name) throws java.io.IOException
dir - the directory in which the file is being created.name - the name of the new file.java.io.IOExceptionboolean createDirectory(VirtualFile dir, java.lang.String name) throws java.io.IOException
dir - the directory in which the directory is being created.name - the name of the new directory.java.io.IOExceptionvoid afterDone(ThrowableConsumer<LocalFileOperationsHandler,java.io.IOException> invoker)