Class FileUtil

java.lang.Object
org.eclipse.pass.loader.nihms.util.FileUtil

public class FileUtil extends Object
Utility class to support directory/filepath processing
Author:
Karen Hanson
  • Method Details

    • getCurrentDirectory

      public static String getCurrentDirectory()
      Gets directory that the app was run from
      Returns:
      the current directory
    • getCsvFilePaths

      public static List<Path> getCsvFilePaths(Path directory)
      Retrieve a list of files in a directory, filter by directory
      Parameters:
      directory - the directory
      Returns:
      the file listing
    • renameToDone

      public static void renameToDone(Path path)
      Rename file to append ".done" once it has been processed
      Parameters:
      path - the path to rename