|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IWritableMount
Represents a part of a virtual filesystem that can be mounted onto a computer using IComputerAccess.mount() or IComputerAccess.mountWritable(), that can also be written to. Ready made implementations of this interface can be created using ComputerCraftAPI.createSaveDirMount(), or you're free to implement it yourselves!
ComputerCraftAPI#createSaveDirMount(World, String),
IComputerAccess#mountWritable(String, IMount),
IMount| Method Summary | |
|---|---|
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. |
| Methods inherited from interface dan200.computer.api.IMount |
|---|
exists, getSize, isDirectory, list, openForRead |
| Method Detail |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||