Interface WritableDirectory
- All Superinterfaces:
CapabilityProvider, Directory
- All Known Implementing Classes:
DiskFileStoreAdapter.DiskDirectoryAdapter, GamedosDirectory, ZipDirectory
A WritableDirectory is a Directory that allows general directory modification.
Since not all directories can perform all tasks, check the capability first,
otherwise an exception will be generated.
-
Method Summary
Modifier and TypeMethodDescriptiondefault WritableDirectorycreateDirectory(String directoryName) Create a directory.default WritableFileEntrycreateFile(String fileName) Create a file.default WritableFileEntrycreateFrom(ProdosAttributes prodosAttributes) Create a file given the supplied ProDOS attributes.default voiddeleteFile(FileEntry fileEntry) Delete a file.Methods inherited from interface CapabilityProvider
canMethods inherited from interface Directory
findFile, getDirectories, getFiles, getFileStore, getName, getParent
-
Method Details
-
createFile
Create a file. By definition, any file created is aWritableFileEntry.- See Also:
-
createFrom
Create a file given the supplied ProDOS attributes. This is expected to handle setting all appropriateFileEntryattributes that align. File type should be converted, dates applied, etc.- See Also:
-
createDirectory
Create a directory. By definition, any directory create is aWritableDirectory.- See Also:
-
deleteFile
-