Class MountConstants
java.lang.Object
dan200.computercraft.api.filesystem.MountConstants
Useful constants functions for working with mounts.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe error message used when attempting to modify a read-only file or mount.static final Set<OpenOption> static final StringThe error message used when trying to open a directory to read.static final FileTimeAFileTimeset to the Unix EPOCH, intended forBasicFileAttributes's file times.static final StringThe error message used when trying to overwrite a file (for instance when renaming files or creating directories).static final longThe minimum size of a file for file capacity calculations.static final StringThe error message used when the file does not exist.static final StringThe error message used when trying to use a file as a directory (for instance when listing its contents).static final StringThe error message used when trying to use a directory as a file (for instance when opening for reading).static final StringThe error message used when the mount runs out of space.static final Set<OpenOption> static final StringThe error message to throw when an unsupported set of options were passed toWritableMount.openFile(String, Set).static final Set<OpenOption> -
Method Summary
-
Field Details
-
EPOCH
AFileTimeset to the Unix EPOCH, intended forBasicFileAttributes's file times. -
MINIMUM_FILE_SIZE
public static final long MINIMUM_FILE_SIZEThe minimum size of a file for file capacity calculations.- See Also:
-
NO_SUCH_FILE
The error message used when the file does not exist.- See Also:
-
NOT_A_DIRECTORY
The error message used when trying to use a file as a directory (for instance when listing its contents).- See Also:
-
NOT_A_FILE
The error message used when trying to use a directory as a file (for instance when opening for reading).- See Also:
-
ACCESS_DENIED
The error message used when attempting to modify a read-only file or mount.- See Also:
-
FILE_EXISTS
The error message used when trying to overwrite a file (for instance when renaming files or creating directories).- See Also:
-
CANNOT_WRITE_TO_DIRECTORY
The error message used when trying to open a directory to read.- See Also:
-
OUT_OF_SPACE
The error message used when the mount runs out of space.- See Also:
-
UNSUPPORTED_MODE
The error message to throw when an unsupported set of options were passed toWritableMount.openFile(String, Set).- See Also:
-
READ_OPTIONS
-
WRITE_OPTIONS
-
APPEND_OPTIONS
-