-
Notifications
You must be signed in to change notification settings - Fork 17
FileManager
Kerri Shotts edited this page Apr 4, 2014
·
7 revisions
FileManager
is a class that provides basic file I/O using the HTML5 File API. It works in Google Chrome (v30 and higher), and Cordova/PhoneGap. It is centered around Promises, and requires Q.js to implement those Promises. The benefit, however, is that we eliminate "callback hell".
FileManager
can depend on BaseObject, or it can be used in a stand-alone mode, as seen here: https://gist.github.com/kerrishotts/7147214.
- globalDebug
- fileSystem R/O
- requestedQuota R/O
- actualQuota R/O
- cwd / currentWorkingDirectory
- init
- initWithOptions
- changeDirectory
- copyDirectory
- copyFile
- createDirectory
- deleteFile
- getDirectoryURL
- getFile
- getFileEntry
- getFileURL
- getNativeURL *
- getNativeDirectoryURL *
- getNativeFileURL *
- moveDirectory
- moveFile
- pushCurrentWorkingDirectory
- popCurrentWorkingDirectory
- readFileContents
- readDirectoryContents
- removeDirectory
- renameFile
- renameDirectory
- resolveLocalFileSystemURL *
- writeFileContents
* Cordova-specific; these won't work in the desktop