Since in Java a `File` object represents both a directory and a file, we need to check not only for `exists` but for `isDirectory` as well: https://github.com/NativeScript/NativeScript/blob/master/file-system/file-system-access.android.ts#L78
Since in Java a
Fileobject represents both a directory and a file, we need to check not only forexistsbut forisDirectoryas well:https://github.com/NativeScript/NativeScript/blob/master/file-system/file-system-access.android.ts#L78