@PublicAPI
public interface LocalSpace
Modifier and Type | Method and Description |
---|---|
void |
deleteFile(File file)
Delete the given file or folder(including its content) inside the local space
|
void |
deleteFiles(String pattern)
Deletes all files found by resolving the given pattern
The following special characters can be used :
** matches zero or more directories * matches zero or more characters ? matches one character |
File |
getFile(String path)
Returns a File object corresponding to the path given as parameter relative to the LocalSpace root
|
Set<File> |
getFiles(String pattern)
Returns a list of File objects found by resolving the pattern given in parameter
The following special characters can be used : ** matches zero or more directories * matches zero or more characters ? matches one character |
File |
getLocalRoot()
Returns the root File of the LocalSpace
|
File getFile(String path) throws FileSystemException
path
- path to resolveFileSystemException
Set<File> getFiles(String pattern) throws FileSystemException
pattern
- pattern to locate filesFileSystemException
void deleteFiles(String pattern) throws FileSystemException
pattern
- pattern to locate filesFileSystemException
void deleteFile(File file) throws FileSystemException
file
- path to the local file (relative to the LocalSpace root) to deleteFileSystemException
File getLocalRoot() throws FileSystemException
FileSystemException