mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Fix defaultManager is method in pre iOS10 and property in iOS10+
This commit is contained in:
@ -109,7 +109,7 @@ export class FileSystemAccess {
|
|||||||
|
|
||||||
public getExistingFolder(path: string, onError?: (error: any) => any): { path: string; name: string } {
|
public getExistingFolder(path: string, onError?: (error: any) => any): { path: string; name: string } {
|
||||||
try {
|
try {
|
||||||
var fileManager = NSFileManager.defaultManager();
|
var fileManager = utils.ios.getter(NSFileManager, NSFileManager.defaultManager);
|
||||||
var exists = this.folderExists(path);
|
var exists = this.folderExists(path);
|
||||||
|
|
||||||
if (exists) {
|
if (exists) {
|
||||||
|
Reference in New Issue
Block a user