public interface IWritableMount extends IMount
dan200.computercraft.api.ComputerCraftAPI#createSaveDirMount(World, String)
,
dan200.computercraft.api.peripheral.IComputerAccess#mountWritable(String, dan200.computercraft.api.filesystem.IMount)
,
IMount
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String path)
Deletes a directory at a given path inside the virtual file system.
|
long |
getRemainingSpace()
Get the ammount of free space on the mount, in bytes.
|
void |
makeDirectory(java.lang.String path)
Creates a directory at a given path inside the virtual file system.
|
java.io.OutputStream |
openForAppend(java.lang.String path)
Opens a file with a given path, and returns an outputstream for appending to it.
|
java.io.OutputStream |
openForWrite(java.lang.String path)
Opens a file with a given path, and returns an outputstream for writing to it.
|
exists, getSize, isDirectory, list, openForRead
void makeDirectory(java.lang.String path) throws java.io.IOException
path
- A file path in normalised format, relative to the mount location. ie: "programs/mynewprograms"java.io.IOException
void delete(java.lang.String path) throws java.io.IOException
path
- A file path in normalised format, relative to the mount location. ie: "programs/myoldprograms"java.io.IOException
java.io.OutputStream openForWrite(java.lang.String path) throws java.io.IOException
path
- A file path in normalised format, relative to the mount location. ie: "programs/myprogram"java.io.IOException
java.io.OutputStream openForAppend(java.lang.String path) throws java.io.IOException
path
- A file path in normalised format, relative to the mount location. ie: "programs/myprogram"java.io.IOException
long getRemainingSpace() throws java.io.IOException
java.io.IOException