blob: 56cf63543e0a8cb60ba7ce4435d462ac1bff53bb [file] [log] [blame] [raw]
package li.cil.oc.api.detail;
import dan200.computer.api.IMount;
import dan200.computer.api.IWritableMount;
import li.cil.oc.api.fs.FileSystem;
import li.cil.oc.api.network.Node;
public interface FileSystemAPI {
FileSystem fromClass(Class<?> clazz, String domain, String root);
FileSystem fromSaveDirectory(String root, long capacity, boolean buffered);
FileSystem fromMemory(long capacity);
FileSystem fromComputerCraft(IMount mount);
FileSystem fromComputerCraft(IWritableMount mount);
Node asNode(FileSystem fs);
}