Class FileUtil
java.lang.Object
org.eclipse.pass.loader.nihms.util.FileUtil
Utility class to support directory/filepath processing
- Author:
- Karen Hanson
-
Method Summary
Modifier and TypeMethodDescriptiongetCsvFilePaths(Path directory) Retrieve a list of files in a directory, filter by directorystatic StringGets directory that the app was run fromstatic voidrenameToDone(Path path) Rename file to append ".done" once it has been processed
-
Method Details
-
getCurrentDirectory
Gets directory that the app was run from- Returns:
- the current directory
-
getCsvFilePaths
Retrieve a list of files in a directory, filter by directory- Parameters:
directory- the directory- Returns:
- the file listing
-
renameToDone
Rename file to append ".done" once it has been processed- Parameters:
path- the path to rename
-