public class dirChangeDetector extends Object
| Constructor and Description |
|---|
dirChangeDetector() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
deleteFile(String absolutePath) |
protected static String |
getFileContent(String absolutePath) |
static ArrayList<String> |
getFileList(File curDir,
ArrayList<String> array)
gets all files in a directory to get all files: File curDir = new File(".");
getAllFiles(curDir);
|
static ArrayList<String> |
getFileList(String directory) |
protected static String |
getRootDir() |
static void |
main(String[] args)
detects changes in directories: files added, removed, name changed
|
public static void main(String[] args)
args - public static ArrayList<String> getFileList(File curDir, ArrayList<String> array)
curDir - target directoryprotected static String getRootDir()
protected static void deleteFile(String absolutePath)
Copyright © 2020. All rights reserved.