2020-03-19 21:20:47 -04:00
|
|
|
export function fileExists(path) {
|
|
|
|
if (window.NativeShell && window.NativeShell.FileSystem) {
|
|
|
|
return window.NativeShell.FileSystem.fileExists(path);
|
|
|
|
}
|
|
|
|
return Promise.reject();
|
|
|
|
}
|
2019-01-10 15:39:37 +03:00
|
|
|
|
2020-03-19 21:20:47 -04:00
|
|
|
export function directoryExists(path) {
|
|
|
|
if (window.NativeShell && window.NativeShell.FileSystem) {
|
|
|
|
return window.NativeShell.FileSystem.directoryExists(path);
|
|
|
|
}
|
|
|
|
return Promise.reject();
|
|
|
|
}
|