public interface IDirectoryController
extends java.rmi.Remote
IActionController.getDirectoryController()| Modifier and Type | Field and Description |
|---|---|
static int |
ALPHABETICAL_ASCENDING
Alphabetical ascending list sort
|
static int |
ALPHABETICAL_DESCENDING
Alphabetical descending list sort
|
static int |
DATE_ASCENDING
Date ascending list sort
|
static int |
DATE_DESCENDING
Date descending list sort
|
static int |
NONE
No list sort
|
static int |
SIZE_ASCENDING
Size ascending list sort
|
static int |
SIZE_DESCENDING
Size descending list sort
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
chdir(java.lang.String path)
Change the current working directory
|
java.lang.String |
current()
Get the current working directory
|
boolean |
delete(java.lang.String path)
Delete a file
|
DirectoryEntry[] |
list(java.lang.String path,
boolean recurse,
IDirectoryFilter filter,
int sort)
Get a directory listing
|
boolean |
mkdir(java.lang.String path)
Make a new directory
|
boolean |
rename(java.lang.String from,
java.lang.String to)
Rename a directory (or file)
|
boolean |
rmdir(java.lang.String path)
Remove a directory
|
void |
setContinueListingOnNonFatalErrors(boolean continueListingOnNonFatalErrorsFlag)
Set flag to continue or stop if non-fatal errors are encountered when listing files and directories
|
DirectoryEntry[] |
sort(DirectoryEntry[] list,
int sort)
Sort a directory listing
|
static final int NONE
static final int ALPHABETICAL_ASCENDING
static final int ALPHABETICAL_DESCENDING
static final int DATE_ASCENDING
static final int DATE_DESCENDING
static final int SIZE_ASCENDING
static final int SIZE_DESCENDING
java.lang.String current()
throws java.lang.Exception
java.lang.ExceptionDirectoryEntry[] list(java.lang.String path, boolean recurse, IDirectoryFilter filter, int sort) throws java.lang.Exception
path - the directory path (or null for the current working directory)recurse - true if nested directories should also be listedfilter - directory entry filter (can be null)sort - either NONE, ALPHABETICAL_ASCENDING, ALPHABETICAL_DESCENDING, DATE_ASCENDING, DATE_DESCENDING,
SIZE_ASCENDING, or SIZE_DESCENDINGjava.lang.Exceptionvoid setContinueListingOnNonFatalErrors(boolean continueListingOnNonFatalErrorsFlag)
throws java.lang.Exception
continueListingOnNonFatalErrorsFlag - true if should continue listing when non-fatal errros are encounteredjava.lang.ExceptionDirectoryEntry[] sort(DirectoryEntry[] list, int sort) throws java.lang.Exception
list - the directory listingsort - either ALPHABETICAL_ASCENDING, ALPHABETICAL_DESCENDING, DATE_ASCENDING, DATE_DESCENDING,
SIZE_ASCENDING, or SIZE_DESCENDINGjava.lang.Exceptionboolean chdir(java.lang.String path)
throws java.lang.Exception
path - a relative or absolute directory pathjava.lang.Exceptionboolean mkdir(java.lang.String path)
throws java.lang.Exception
path - a relative or absolute directory pathjava.lang.Exceptionboolean rmdir(java.lang.String path)
throws java.lang.Exception
path - a relative or absolute directory pathjava.lang.Exceptionboolean delete(java.lang.String path)
throws java.lang.Exception
path - a relative or absolute file pathjava.lang.Exceptionboolean rename(java.lang.String from,
java.lang.String to)
throws java.lang.Exception
from - a relative or absolute directory (or file) pathto - a relative or absolute directory (or file) pathjava.lang.Exception