Method Summary |
|
public static String | convertBackSlashes(String path) converts one slash into 2 backslashes. |
public static String | convertBackSlashesNoParams(String aPath) converts only if backslash is not proceeded by a blank. |
public static String | convertSlashes(String path) converts 2 backslashes into one slash. |
public static boolean | copy(String source, String destination) Copy source location to destination. |
public static boolean | copy(String source, String destination, boolean subdirectories) Copy source location to destination. |
public static boolean | createDirectories(String directory) Create a directory; all non-existent ancestor directories are. |
public static boolean | createDirectory(String directory) Create a directory; all ancestor directories must exist. |
public static boolean | createDirectoryStructure(String aDirectory, String[] subdirectories) Create a directory and a number of subdirectories specified in the String
array automatically created. |
public static String | eliminateDoubleSlashes(String filename) Eleminates // in a filename. |
public static boolean | fileExists(String fileName) Retrieves the existance of a file or directory (to be or not to be....).
Parameters: fileName - name of the file or directory. |
protected static boolean | filecopy(String source, String destination, boolean subdirectories) Copy source location to destination. |
public static File | getAbsoluteFile(String filename) Parameters: filename - A filename that may be a relative filename like "." or "..". |
public static String | makeDirectory(String aPath) making a string to a directory with ending on File.separator. |
public static boolean | move(String source, String destination) Move / Rename source location to destination. |
public static String | normPath(String aPath) converting the given path with an File.separator at the end. |
public static ArrayList | readFileToArrayList(String fileName) reading a file into an arraylist. |
public static String | readFileToString(String fileName) reading a file into an arraylist. |
public static boolean | remove(String filename, boolean bRecursive) removes a directory recursively. |
public static boolean | remove(String filename, boolean bRecursive, ArrayList excludes) removes a directory recursively. |
public static boolean | remove(String filename) Delete the file. |
public static void | writeStringToFile(String filename, String content) simple writing a string into a file. |