UNPKG
level-filesystem
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
Full implementation of the fs module on top of leveldb
github.com/mafintosh/level-filesystem
level-filesystem
/
test
/
chown.js
15 lines
(14 loc)
•
307 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var
test =
require
(
'./helpers/test'
);
test
(
'chown'
,
function
(
fs, t
) { fs.
mkdir
(
'/foo'
,
function
(
) { fs.
chown
(
'/foo'
,
10
,
11
,
function
(
err
) { t.
notOk
(err); fs.
stat
(
'/foo'
,
function
(
err, stat
) { t.
notOk
(err); t.
same
(stat.
uid
,
10
); t.
same
(stat.
gid
,
11
); t.
end
(); }); }); }); });