| java.lang.Object org.pnuts.lib.PathHelper
PathHelper | public class PathHelper (Code) | | Provides helper methods to handle files
|
Field Summary | |
final static String | CWD |
Method Summary | |
public static boolean | ensureBaseDirectory(File file) Ensure that the parent directories exist. | public static File | getFile(String name, Context context) Gets a java.io.File object
Parameters: name - the file name Parameters: context - the context in which the file name is resolved.The context-local variable 'cwd' is used as the current directory if thespecified file name is not an absolute path. | static boolean | isRelative(File file) | public static void | setCurrentDirectory(File dir, Context context) |
CWD | final static String CWD(Code) | | |
ensureBaseDirectory | public static boolean ensureBaseDirectory(File file)(Code) | | Ensure that the parent directories exist.
Parameters: file - a java.io.File object true if all parent directories are already/successfully created. |
getFile | public static File getFile(String name, Context context)(Code) | | Gets a java.io.File object
Parameters: name - the file name Parameters: context - the context in which the file name is resolved.The context-local variable 'cwd' is used as the current directory if thespecified file name is not an absolute path. the java.io.File object that represents the file. |
isRelative | static boolean isRelative(File file)(Code) | | |
setCurrentDirectory | public static void setCurrentDirectory(File dir, Context context)(Code) | | Sets the current directory
Parameters: dir - the directory Parameters: context - the context |
|
|