-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Implement missing Fs functions #799
Comments
opendir, readdir, closedir are all abstracted into fs.readdir setstat and fsetstat +1 though. :) On Wed, Mar 16, 2011 at 16:56, creationix
|
I realize they are abstracted for readdir, but I need the low level ones for the sftp protocol or else I have to buffer it all and create a fake fd and basically unabstract it. |
Also I don't know the posix side very well. I was able to open a directory with the normal open command, but the read function didn't want to work on a directory. So maybe we can reuse open and close, but just have another version of read that works on directory handles. |
I believe that directory FDs and file FDs are different animals. A low-level readdir binding would be good. Maybe fs.readdir() could It is a bit odd that fs.readdir is the only one with a posix name that On Wed, Mar 16, 2011 at 17:10, creationix
|
Sounds good, do I need to come up with a patch to get this done, or can you and/or Ryan implement it? |
creationix - i'm not against a directory streaming api - but we need to figure out how it looks. we're not going to get to this for a while - so feel free |
The only thing I need to finish my sftp server is fsetstat and setstat, those should be pretty straight-forward. I can wait on the streaming directory reader. |
Isaac pointed out that trunk node now has utimes and futimes. I think all I need now is fchmod and fchown to finish out fsetstat. (I'm setting uid, gid, permissions, mtime, and atime) |
Moved to #853. Closing this. |
While implementing the sftp protocol, I noticed that node is missing a few posix fs wrappers.
https://github.com/creationix/sftp-server
The text was updated successfully, but these errors were encountered: