diff --git a/src/ios/CDVFile.m b/src/ios/CDVFile.m index 11b8dd3f6..fe98c7217 100644 --- a/src/ios/CDVFile.m +++ b/src/ios/CDVFile.m @@ -1010,8 +1010,8 @@ - (void)testDirectoryExists:(CDVInvokedUrlCommand*)command - (void)getFreeDiskSpace:(CDVInvokedUrlCommand*)command { // no arguments - - NSNumber* pNumAvail = [self checkFreeDiskSpace:self.appDocsPath]; + NSString* fullPath = @"/"; + NSNumber* pNumAvail = [self checkFreeDiskSpace:fullPath]; NSString* strFreeSpace = [NSString stringWithFormat:@"%qu", [pNumAvail unsignedLongLongValue]]; // NSLog(@"Free space is %@", strFreeSpace );