Java Utililty Methods Root Directory Get

List of utility methods to do Root Directory Get

Description

The list of methods to do Root Directory Get are organized into topic(s).

Method

FilegetRootDirectory()
The root directory which stores the internal files for the emulator, such as configuration files.
if (!root.exists())
    root.mkdir();
return root;
FilegetRootDirectoryOf(String referenceFile, String rootMark)
get Root Directory Of
File reference = new File(referenceFile);
if (!reference.exists())
    return null;
String cannon = ".";
try {
    cannon = reference.getCanonicalPath();
} catch (Exception e) {
return getRootDirectoryOf(new File(cannon), rootMark);