public class SimpleFileManager extends AbstractFileManager
mGroup, mRootDir, mUser
Constructor and Description |
---|
SimpleFileManager(String rootDir,
String user,
String group)
Construct a simple file manager from a root.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getNextFilePath(String fileName) |
List<String> |
listFile()
List all the files in a file manager.
|
boolean |
removeFile(String fileName)
Remove a file.
|
addFile, verifyFileName
protected String getNextFilePath(String fileName) throws InvalidPathException
getNextFilePath
in class AbstractFileManager
InvalidPathException
public List<String> listFile()
FileManager
public boolean removeFile(String fileName)
FileManager
fileName
- file nameCopyright © 2023. All Rights Reserved.