forked from phcode-dev/staging.phcode.dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInMemoryFile.js
More file actions
1 lines (1 loc) · 1.07 KB
/
InMemoryFile.js
File metadata and controls
1 lines (1 loc) · 1.07 KB
1
define(function(require,exports,module){var File=require("filesystem/File"),FileSystemError=require("filesystem/FileSystemError");function InMemoryFile(fullPath,fileSystem){File.call(this,fullPath,fileSystem)}InMemoryFile.prototype=Object.create(File.prototype),InMemoryFile.prototype.constructor=InMemoryFile,InMemoryFile.prototype.parentClass=File.prototype,InMemoryFile.prototype.read=function(options,callback){"function"==typeof options&&(callback=options),callback(FileSystemError.NOT_FOUND)},InMemoryFile.prototype.write=function(data,encoding,callback){"function"==typeof encoding&&(callback=encoding),callback(FileSystemError.NOT_FOUND)},InMemoryFile.prototype.exists=function(callback){callback(null,!1)},InMemoryFile.prototype.stat=function(callback){callback(FileSystemError.NOT_FOUND)},InMemoryFile.prototype.unlink=function(callback){callback(FileSystemError.NOT_FOUND)},InMemoryFile.prototype.rename=function(newName,callback){callback(FileSystemError.NOT_FOUND)},InMemoryFile.prototype.moveToTrash=function(callback){callback(FileSystemError.NOT_FOUND)},module.exports=InMemoryFile});