57 lines
1.2 KiB
Java
57 lines
1.2 KiB
Java
package net.minecraft.server.packs.linkfs;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.file.FileStore;
|
|
import java.nio.file.attribute.BasicFileAttributeView;
|
|
import java.nio.file.attribute.FileAttributeView;
|
|
import java.nio.file.attribute.FileStoreAttributeView;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class LinkFSFileStore extends FileStore {
|
|
private final String name;
|
|
|
|
public LinkFSFileStore(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String name() {
|
|
return this.name;
|
|
}
|
|
|
|
public String type() {
|
|
return "index";
|
|
}
|
|
|
|
public boolean isReadOnly() {
|
|
return true;
|
|
}
|
|
|
|
public long getTotalSpace() {
|
|
return 0L;
|
|
}
|
|
|
|
public long getUsableSpace() {
|
|
return 0L;
|
|
}
|
|
|
|
public long getUnallocatedSpace() {
|
|
return 0L;
|
|
}
|
|
|
|
public boolean supportsFileAttributeView(Class<? extends FileAttributeView> class_) {
|
|
return class_ == BasicFileAttributeView.class;
|
|
}
|
|
|
|
public boolean supportsFileAttributeView(String string) {
|
|
return "basic".equals(string);
|
|
}
|
|
|
|
@Nullable
|
|
public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> class_) {
|
|
return null;
|
|
}
|
|
|
|
public Object getAttribute(String string) throws IOException {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
}
|