Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e8dbdfd
Add stat, lstat, fstat, chown and fchown working with SIDs on Windows
prantlf Jan 2, 2014
3611c09
Fix merging the fs extras, fix tests for Windows
prantlf Jan 5, 2014
2d2cf02
Fix the chown test for Linux
prantlf Jan 5, 2014
03ad34c
Added example.js
alessioalex Feb 3, 2014
9916cf7
win32: Replace LOCK_* constants with macros
bajtos May 15, 2014
6ae66e9
this commit fixes that node does not crash with an invalid file descr…
Oct 29, 2014
a67168a
port library to use NAN
rlidwka Nov 13, 2014
382a7f3
added fcntl() binding
timbertson May 28, 2014
dd70f74
add fcntl to README.md
timbertson May 28, 2014
e1f5961
bump version
bruhq Nov 17, 2014
1b29b00
ThrowException -> NanThrowError
rlidwka Nov 25, 2014
84afbc6
Bump version
baudehlo Nov 25, 2014
9572ed3
Add license text file
pnemade Dec 4, 2014
aa6d746
Lock Nan to 1.4
bruhq Jan 21, 2015
459899f
Bump version
bruhq Jan 21, 2015
9f12162
Bump version again
bruhq Jan 21, 2015
67aaae0
Update Nan to 1.6. New Nan is stricter about conversions, so static_c…
ggreer Feb 23, 2015
d42f0a6
Update to nan ~1.8
imyller May 5, 2015
6f49abb
Use nan 1.9 for ErrnoException and FatalException
sam-github Jun 8, 2015
a99b1ea
Update dep to Nan 2.x.
ggreer Aug 30, 2015
70cffca
Use Nan 2.x API. Still need to fix NanAssignPersistent.
ggreer Aug 30, 2015
ba66743
Hooray, it compiles.
ggreer Aug 30, 2015
5e48877
Return after setting return value for sync methods. Fixes tests.
ggreer Aug 30, 2015
2015569
Cleanup. Prefer methods to explicit function invocations. You never k…
ggreer Aug 30, 2015
e03e22f
Replace deprecated NanErrnoException with ErrnoException
Jan 15, 2016
035e9cc
fix, Segmentation fault while running test 'fd value is negative'
Mar 7, 2017
4055b24
fix, Segmentation faults on node 0.10(.48)
Mar 7, 2017
604d4e3
Add eslint and travis and codecov
bruhq Mar 7, 2017
99b5e10
Add node_modules
bruhq Mar 7, 2017
6cc997b
Fix lint errors
bruhq Mar 7, 2017
42ff54b
Add codecov token
bruhq Mar 7, 2017
0c3bf22
V0.6.0 (#65)
baudehlo Mar 7, 2017
b2c9148
Lint fixes
bruhq Mar 7, 2017
b6c3c5f
Merge branch 'master' into prantlf-win-uid-as-sid
baudehlo Mar 7, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 65 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
fs-ext
======

Extras not included in Node's fs module.
Extras not included in Node's fs module
and cross-platform file ownership handling.

Installation
------------
Expand Down Expand Up @@ -92,5 +93,68 @@ Just like for utime(2), the absence of the `atime` and `mtime` means 'now'.
Synchronous version of utime(). Throws an exception on error.


### fs.stat(path, [callback])

Replaces the `fs.stat` returning the string representation of
[SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx)
of the owning user and group in the `uid` and `gid` attributes of the output
`stats` object.

### fs.statSync(path)

Replaces the `fs.statSync` returning the string representation of
[SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx)
of the owning user and group in the `uid` and `gid` attributes of the output
`stats` object.


### fs.lstat(path, [callback])

Replaces the `fs.lstat` returning the string representation of
[SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx)
of the owning user and group in the `uid` and `gid` attributes of the output
`stats` object.

### fs.lstatSync(path)

Replaces the `fs.lstatSync` returning the string representation of
[SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx)
of the owning user and group in the `uid` and `gid` attributes of the output
`stats` object.


### fs.fstat(fd, [callback])

Replaces the `fs.fstat` returning the string representation of
[SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx)
of the owning user and group in the `uid` and `gid` attributes of the output
`stats` object.

### fs.fstatSync(fd)

Replaces the `fs.fstatSync` returning the string representation of
[SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx)
of the owning user and group in the `uid` and `gid` attributes of the output
`stats` object.


### fs.chown(path, [callback])

Replaces the `fs.chown` expecting `uid` and `gid` as the string representation
of [SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx).

### fs.chownSync(path)

Replaces the `fs.chownSync` expecting `uid` and `gid` as the string representation
of [SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx).


### fs.fchown(fd, [callback])

Replaces the `fs.fchown` expecting `uid` and `gid` as the string representation
of [SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx).

### fs.fchownSync(fd)

Replaces the `fs.fchownSync` expecting `uid` and `gid` as the string representation
of [SIDs](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379594.aspx).
12 changes: 12 additions & 0 deletions autores.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifdef _WIN32

#include "autores.h"

namespace autores {

// the process heap will be initialized on the first usage
HANDLE HeapBase::processHeap = NULL;

} // namespace autores

#endif // _WIN32
Loading