mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
code reverted
This commit is contained in:
@ -31,6 +31,5 @@ export var test_file_exists_on_folder = function () {
|
||||
return;
|
||||
}
|
||||
|
||||
TKUnit.assertFalse(fs.File.exists(path), "File.exists() returned true for folder!");
|
||||
};
|
||||
|
||||
TKUnit.assertTrue(fs.File.exists(path), "File.exists() returned false for folder!");
|
||||
};
|
@ -75,7 +75,7 @@ export class FileSystemAccess {
|
||||
|
||||
public fileExists(path: string): boolean {
|
||||
var file = new java.io.File(path);
|
||||
return file.exists() && !file.isDirectory();
|
||||
return file.exists();
|
||||
}
|
||||
|
||||
public folderExists(path: string): boolean {
|
||||
|
@ -148,7 +148,7 @@ export class FileSystemAccess {
|
||||
|
||||
public fileExists(path: string): boolean {
|
||||
var result = this.exists(path);
|
||||
return result.exists && !result.isDirectory;
|
||||
return result.exists;
|
||||
}
|
||||
|
||||
public folderExists(path: string): boolean {
|
||||
|
Reference in New Issue
Block a user