1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00
filebot/source/net/filebot/gio/GVFS.java
2016-11-19 00:12:36 +08:00

24 lines
447 B
Java

package net.filebot.gio;
import java.io.File;
import java.net.URI;
import net.filebot.util.SystemProperty;
public interface GVFS {
File getPathForURI(URI uri);
public static GVFS getDefaultVFS() {
GVFS gvfs = SystemProperty.of("net.filebot.gio.GVFS", path -> new PlatformGVFS(new File(path))).get();
// default to native implementation GVFS folder is not set
if (gvfs == null) {
gvfs = new NativeGVFS();
}
return gvfs;
}
}