Interface FileSystemListener
- All Known Implementing Classes:
FileSystemEventManager
public interface FileSystemListener
FileSystemListener provides a listener the ability
to be notified of folder and file changes within a FileSystem.-
Method Summary
Modifier and TypeMethodDescriptionvoidfolderCreated(String parentPath, String name) Notification that a new folder was created.voidfolderDeleted(String parentPath, String folderName) Notification that a folder was deleted.voidfolderMoved(String parentPath, String folderName, String newParentPath) Notification that a folder was moved.voidfolderRenamed(String parentPath, String oldFolderName, String newFolderName) Notification that a folder was renamed.voiditemChanged(String parentPath, String itemName) Notfication that an item's state has changed.voiditemCreated(String parentPath, String name) Notification that a new folder item was created.voiditemDeleted(String folderPath, String itemName) Notification that a folder item was deleted.voidNotification that an item was moved.voiditemRenamed(String folderPath, String oldItemName, String newItemName) Notification that an item was renamed.voidPerform a full refresh / synchronization
-
Method Details
-
folderCreated
-
itemCreated
-
folderDeleted
-
folderMoved
Notification that a folder was moved.- Parameters:
parentPath- the path of the folder that used to contain the moved folder.folderName- the name of the folder that was moved.newParentPath- the path of the folder that now contains the moved folder.
-
folderRenamed
-
itemDeleted
-
itemRenamed
-
itemMoved
Notification that an item was moved.- Parameters:
parentPath- the path of the folder that used to contain the item.name- the name of the item that was moved.newParentPath- the path of the folder that the item was moved to.newName- the new name of the item.
-
itemChanged
-
syncronize
void syncronize()Perform a full refresh / synchronization
-