| java.lang.Object com.metaboss.util.FileUtils
FileUtils | public class FileUtils (Code) | | Set of useful utilites to do with files
|
Method Summary | |
public static void | copyFile(String pFromFilePath, String pToFilePath) Copies contents of the from file to the destination file. | public static void | ensureFileIsAbsent(String pFilePath) Makes sure that the specified file is absent. | public static void | moveFile(String pFromFilePath, String pToFilePath) Moves contents of the from file to the destination file. |
copyFile | public static void copyFile(String pFromFilePath, String pToFilePath) throws FileNotFoundException, IOException(Code) | | Copies contents of the from file to the destination file. Existing target file gets overwritten
source file stays unmodified.
|
ensureFileIsAbsent | public static void ensureFileIsAbsent(String pFilePath) throws IOException(Code) | | Makes sure that the specified file is absent. Deletes existing file if necessary
|
moveFile | public static void moveFile(String pFromFilePath, String pToFilePath) throws FileNotFoundException, IOException(Code) | | Moves contents of the from file to the destination file. Existing target file gets overwritten
source file is deleted after successfull copying.
|
|
|