Skip to content

Commit

Permalink
Can't get the disk space until we get the disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
sintaxi committed Feb 25, 2010
1 parent be5c31e commit 64574be
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions framework/assets/js/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ function FileMgr()
this.tempFolderPath = "../../tmp";
this.freeDiskSpace = -1;
this.getFileBasePaths();
this.getFreeDiskSpace();
}

// private, called from Native Code
Expand Down Expand Up @@ -193,8 +192,6 @@ FileReader.prototype.readAsText = function(file)
}
this.fileName = file;
navigator.fileMgr.addFileReader(this.fileName,this);
//alert("Calling File.read : " + this.fileName);
//window.location = "gap://File.readFile/"+ file;

return FileUtil.read(fileName);
}
Expand Down Expand Up @@ -225,14 +222,5 @@ FileWriter.prototype.writeAsText = function(file,text,bAppend)
navigator.fileMgr.addFileWriter(file,this);
this.readyState = 0; // EMPTY
var call = FileUtil.write(file, text, bAppend);
if(call > 0)
this.onerror();
else
this.oncomplete();
this.result = null;
}





0 comments on commit 64574be

Please sign in to comment.