checkAndNotify(rootEntry, rootEntry.getChildren(), listFiles(rootFile)); } else if (rootEntry.isExists()) { checkAndNotify(rootEntry, rootEntry.getChildren(), Files.EMPTY_FILE_ARRAY); } else {
checkAndNotify(entry, entry.getChildren(), listFiles(files[c])); current[c] = entry; c++; } else { checkAndNotify(entry, entry.getChildren(), Files.EMPTY_FILE_ARRAY); doDelete(entry);
/** * Fire directory/file created events to the registered listeners. * * @param entry The file entry */ private void doCreate(FileInfo entry) { for (FileChangeListener listener : listeners) { if (entry.isDirectory()) { listener.onDirectoryCreate(this,entry.getFile()); } else { listener.onFileCreate(this,entry.getFile()); } } FileInfo[] children = entry.getChildren(); for (FileInfo aChildren : children) { doCreate(aChildren); } }