public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getConfigFilePath(String filepathKey,
String defaultFileName)
Selects the path of the config file to load properties from.
|
static List<Path> |
getCsvFilePaths(Path directory)
Retrieve a list of files in a directory, filter by directory
|
static String |
getCurrentDirectory()
Gets directory that the app was run from
|
static File |
getDataDirectory()
Selects the directory that data will be downloaded to or read from.
|
static void |
renameToDone(Path path)
Rename file to append ".done" once it has been processed
|
public static String getCurrentDirectory()
public static File getConfigFilePath(String filepathKey, String defaultFileName)
public static File getDataDirectory()
public static List<Path> getCsvFilePaths(Path directory)
directory - the directorypublic static void renameToDone(Path path)
path - the path to renameCopyright © 2019. All rights reserved.