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 String
The error message used when attempting to modify a read-only file or mount.static final Set<OpenOption>
static final String
The error message used when trying to opening a directory to read.static final FileTime
AFileTime
set to the Unix EPOCH, intended forBasicFileAttributes
's file times.static final String
The error message used when trying to overwrite a file (for instance when renaming files or creating directories).static final long
The minimum size of a file for file capacity calculations.static final String
The error message used when the file does not exist.static final String
The error message used when trying to use a file as a directory (for instance when listing its contents).static final String
The error message used when trying to use a directory as a file (for instance when opening for reading).static final String
The error message used when the mount runs out of space.static final Set<OpenOption>
static final String
The 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
AFileTime
set 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 opening 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
-