Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add writeSync and closeSync to file object

  • Loading branch information...
commit 6991f5ab8d28a4e80a36360cf828975879322cbb 1 parent cea146f
@kriszyp authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 fs.js
View
6 fs.js
@@ -95,6 +95,12 @@ function File(fd){
file.close = function(){
return exports.close(file);
}
+ file.writeSync = function(contents, options, encoding){
+ return exports.writeSync(file.fd, contents, options, encoding);
+ }
+ file.closeSync = function(){
+ return exports.closeSync(file.fd);
+ }
return file;
}
File.prototype = LazyArray.prototype;
Please sign in to comment.
Something went wrong with that request. Please try again.