Package org.reldb.toolbox.utilities
Class Directory
java.lang.Object
org.reldb.toolbox.utilities.Directory
Directory-handling utilities.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Directory
public Directory()
-
-
Method Details
-
chkmkdir
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
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
Return true if a given path specification exists.- Parameters:
fspec
- Path specification.- Returns:
- True if it exists.
-