Added stubs. Fix position for read/write.
This commit is contained in:
parent
3d8a414f5d
commit
33791ca950
|
@ -492,7 +492,7 @@ define(function(require) {
|
|||
callback(error);
|
||||
} else {
|
||||
fileData = result;
|
||||
var _position = (undefined !== position) ? position : ofd.position;
|
||||
var _position = (!(undefined === position && null === position)) ? position : ofd.position;
|
||||
var newSize = Math.max(fileData.length, _position + length);
|
||||
var newData = new Uint8Array(newSize);
|
||||
if(fileData) {
|
||||
|
@ -548,7 +548,7 @@ define(function(require) {
|
|||
callback(error);
|
||||
} else {
|
||||
fileData = result;
|
||||
var _position = (undefined !== position) ? position : ofd.position;
|
||||
var _position = (!(undefined === position && null === position)) ? position : ofd.position;
|
||||
length = (_position + length > buffer.length) ? length - _position : length;
|
||||
var dataView = fileData.subarray(_position, _position + length);
|
||||
buffer.set(dataView, offset);
|
||||
|
@ -1141,6 +1141,15 @@ define(function(require) {
|
|||
};
|
||||
FileSystem.prototype.utime = function utime(path, atime, mtime, callback) {
|
||||
|
||||
};
|
||||
FileSystem.prototype.rename = function rename(old, new, callback) {
|
||||
|
||||
};
|
||||
FileSystem.prototype.truncate = function truncate(path, length, callback) {
|
||||
|
||||
};
|
||||
FileSystem.prototype.ftruncate = function ftruncate(fd, length, callback) {
|
||||
|
||||
};
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue