mirror of
https://github.com/mitb-archive/filebot
synced 2024-08-13 17:03:45 -04:00
24 lines
447 B
Java
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;
|
|
}
|
|
|
|
}
|