Package com.perforce.p4java.util
Class FilesHelper
- java.lang.Object
-
- com.perforce.p4java.util.FilesHelper
-
public class FilesHelper extends java.lang.Object
Files helper class with generally useful methods.
-
-
Constructor Summary
Constructors Constructor Description FilesHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
copy(java.io.File source, java.io.File destination)
Copy source file to destination file.static boolean
mkdirs(java.io.File file)
Create all directories, including nonexistent parent directories.
-
-
-
Method Detail
-
copy
public static boolean copy(java.io.File source, java.io.File destination) throws java.io.IOException
Copy source file to destination file.- Parameters:
source
- sourcedestination
- destination- Returns:
- status
- Throws:
java.io.IOException
- on error
-
mkdirs
public static boolean mkdirs(java.io.File file)
Create all directories, including nonexistent parent directories.- Parameters:
file
- file- Returns:
- status
-
-