public class FTFileUtil
extends java.lang.Object
Constructor and Description |
---|
FTFileUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fileExists(java.lang.String fileName)
Check if a file exists ?
|
static void |
mkFile(java.lang.String fileName,
int length)
Create a file.
|
private static boolean |
removeDirectory(java.io.File directory)
Remove a directory and all of its contents.
|
static java.lang.String |
removeDirectory(java.lang.String directory)
Remove a directory and all of its contents.
|
static void |
renameFile(java.lang.String location,
java.lang.String name,
java.lang.String newName)
rename a file.
|
public static void mkFile(java.lang.String fileName, int length) throws java.lang.Exception
fileName
- the file's name.length
- the number of bytes of test data in the file.java.lang.Exception
- oops.public static void renameFile(java.lang.String location, java.lang.String name, java.lang.String newName) throws java.lang.Exception
location
- location of the filename
- the file's namenewName
- the file's new namejava.lang.Exception
public static java.lang.String fileExists(java.lang.String fileName)
fileName
- the file's name.private static boolean removeDirectory(java.io.File directory)
directory
- the directory's name.public static java.lang.String removeDirectory(java.lang.String directory) throws java.security.PrivilegedActionException
directory
- the directory's name.java.security.PrivilegedActionException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.