public class TestFileDirUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
addDirectory(File parentDir,
String dirName)
In the given parent directory, add a subdirectory.
|
static File |
addDirectory(File parentDir,
String dirName,
long lastModTime) |
static File |
addFile(File parentDir,
String fileName)
Add a file directly in the given parent directory.
|
static File |
addFile(File parentDir,
String fileName,
long lastModTime) |
public static File addDirectory(File parentDir, String dirName)
parentDir - the already existing parent directory.dirName - the directory path to createpublic static File addFile(File parentDir, String fileName)
parentDir - the already existing parent directory.fileName - the name of the file to create (may not contain multiple path segments).