Package com.sun.jini.system
Class FileSystem
java.lang.Object
com.sun.jini.system.FileSystem
Miscellaneous file system manipulation methods.
- Author:
- Sun Microsystems, Inc.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileSystem
public FileSystem()
-
-
Method Details
-
destroy
Remove this completely. If the parameter is a directory, it is removed after recursively destroying all its contents, including subdirectories. If the named file does not exist,destroysimply returns.- Parameters:
proceed- Proceed in the face of errors; otherwise the first error stops the execution of the method.- Throws:
IOException- The list of files that couldn't be removed (in the detail string).
-
ensureDir
Ensure that the given path is a directory, creating it if necessary. If the path exists it must be a directory. It the path does not exist this method usesFile.mkdirsto create the directory along with any intermediate paths.- Throws:
IllegalArgumentException- if the path already exists but is not a directory, or it does not exist and cannot be created.
-