public interface FileManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLICATION_DATA |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createDirectory(java.lang.String dirName)
create the directory (and parent directories if necessary) specified
by dirName
|
boolean |
deleteDirectory(java.io.File path)
delete the directory and everything in it.
|
boolean |
fileExists(java.lang.String path) |
HecFile |
getFile(java.lang.String path)
get the file specified by path.
|
HecFile |
getFile(java.lang.String path,
boolean createDirIfNeeded)
get the file specified by path.
|
int |
getFileCount(java.lang.String dirToCount)
get the count of all files in the directory tree dirToCount
|
HecFile |
getUserPreferencesFile(java.lang.String string)
get
|
java.util.List<java.lang.String> |
list(java.lang.String directory,
java.io.FilenameFilter filter)
get a listing of the files in the folder directory that
match the FilenameFilter filter
|
java.util.List<java.lang.String> |
list(java.lang.String directory,
java.io.FilenameFilter filter,
boolean recurse) |
static final java.lang.String APPLICATION_DATA
HecFile getFile(java.lang.String path)
path - path to the fileHecFile getFile(java.lang.String path, boolean createDirIfNeeded)
path - createDirIfNeeded - true to create the directory the file lives in if it doesn't existboolean fileExists(java.lang.String path)
java.util.List<java.lang.String> list(java.lang.String directory,
java.io.FilenameFilter filter)
directory - directory to get the listing fromfilter - filter to usejava.util.List<java.lang.String> list(java.lang.String directory,
java.io.FilenameFilter filter,
boolean recurse)
boolean createDirectory(java.lang.String dirName)
dirName - the name of the new directoryHecFile getUserPreferencesFile(java.lang.String string)
string - boolean deleteDirectory(java.io.File path)
path - the directory to deleteint getFileCount(java.lang.String dirToCount)
dirToCount - the directory to count the files in