Merge pull request #83 from btulchinsky/utimes
fix for issue 81 - error when utimes/futimes fails to queue/run
This commit is contained in:
commit
6740242af0
|
@ -1991,6 +1991,10 @@ define(function(require) {
|
|||
_utimes(context, path, atime, mtime, callback);
|
||||
}
|
||||
);
|
||||
|
||||
if (error) {
|
||||
callback(error);
|
||||
}
|
||||
};
|
||||
FileSystem.prototype.futimes = function(fd, atime, mtime, callback) {
|
||||
callback = maybeCallback(callback);
|
||||
|
@ -2001,6 +2005,10 @@ define(function(require) {
|
|||
_futimes(fs, context, fd, atime, mtime, callback);
|
||||
}
|
||||
);
|
||||
|
||||
if (error) {
|
||||
callback(error);
|
||||
}
|
||||
};
|
||||
|
||||
return FileSystem;
|
||||
|
|
Loading…
Reference in New Issue