Class Directory

java.lang.Object
org.reldb.toolbox.utilities.Directory

public class Directory extends Object
Directory-handling utilities.
  • Constructor Details

    • Directory

      public Directory()
  • Method Details

    • chkmkdir

      public static boolean chkmkdir(String dir)
      Return true if specified directory exists. Otherwise, attempt to create it and return true if successful. Return false if unable to create the directory.
      Parameters:
      dir - Specified directory.
      Returns:
      True if specified directory exists after running this method, otherwise false.
    • rmAll

      public static boolean rmAll(String dir)
      Remove the specified file or directory. If it's a directory, remove all files in the specified directory and the directory itself.
      Parameters:
      dir - Directory.
      Returns:
      True if successful; false otherwise.
    • exists

      public static boolean exists(String fspec)
      Return true if a given path specification exists.
      Parameters:
      fspec - Path specification.
      Returns:
      True if it exists.