|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.util.io.Directory
public final class Directory
Various directory related methods for the Blackberry.
Method Summary | |
---|---|
static boolean |
Delete(java.lang.String path)
Deletes a directory. |
static boolean |
EnsureCreation(java.lang.String path)
If a directory does not exist then this method will make sure any folders and subfolders are created. |
static boolean |
Exists(java.lang.String path)
Determines whether the given path refers to an existing directory on the device. |
static boolean |
isDirectory(FileConnection file)
Checks if the URL passed to the Connector.open() is a directory. |
static boolean |
Move(java.lang.String originalPath,
java.lang.String newPath)
Move a directory from one location to another. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean Exists(java.lang.String path)
path
- The path to test.
true
if path refers to an existing directory; otherwise, false
.public static boolean EnsureCreation(java.lang.String path)
path
- The path to the directory that is to be created.
true
if the directory can be created, false
if otherwise.public static boolean isDirectory(FileConnection file)
FileConnection
's FileConnection#isDirectory()
function is this will check if it is a directory
regardless of if it exists already.
file
- The FileConnection
to check if it is a directory.
true
if the connection's target is a directory, otherwise false
.public static boolean Delete(java.lang.String path)
path
- The directory to delete.
true
if the directory was deleted, false
if otherwise.public static boolean Move(java.lang.String originalPath, java.lang.String newPath)
originalPath
- The original directory path.newPath
- The new directory path.
true
if the directory was moved, false
if otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |