| java.lang.Object org.apache.derbyTesting.functionTests.util.FTFileUtil
FTFileUtil | public class FTFileUtil (Code) | | Convience functions for performing file manipulations
in ij scripts.
|
Method Summary | |
public static String | fileExists(String fileName) Check if a file exists ?
This method is called by some tests through a SQL function:
fileExists(fileName varchar(128))returns VARCHAR(100)
Parameters: name - the file's name. | public static void | mkFile(String fileName, int length) Create a file. | public static String | removeDirectory(String directory) Remove a directory and all of its contents.
This method is called by some tests through a SQL function:
removeDirectory(fileName varchar(128)) returns VARCHAR(100)
Parameters: name - the file's name. | public static void | renameFile(String location, String name, String newName) rename a file. |
fileExists | public static String fileExists(String fileName) throws PrivilegedActionException(Code) | | Check if a file exists ?
This method is called by some tests through a SQL function:
fileExists(fileName varchar(128))returns VARCHAR(100)
Parameters: name - the file's name. "true" if the given file exists "false" otherwise. exception: Exception - if any exception occurs |
mkFile | public static void mkFile(String fileName, int length) throws Exception(Code) | | Create a file.
Parameters: name - the file's name. exception: Exception - oops. |
removeDirectory | public static String removeDirectory(String directory) throws PrivilegedActionException(Code) | | Remove a directory and all of its contents.
This method is called by some tests through a SQL function:
removeDirectory(fileName varchar(128)) returns VARCHAR(100)
Parameters: name - the file's name. "true" if the omplete directory was removed"false" otherwise.f false is returned then some of the files in the directory may have been removed. |
renameFile | public static void renameFile(String location, String name, String newName) throws Exception(Code) | | rename a file.
This method is called by some tests through a SQL procedure:
RENAME_FILE(LOCATION VARCHAR(32000), NAME VARCHAR(32000),
NEW_NAME VARCHAR(32000))
Parameters: location - location of the file Parameters: name - the file's name Parameters: newName - the file's new name |
|
|