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