Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node> p=require('posix');
- {
- "Stats": [Function],
- "close": [Function],
- "closeSync": [Function],
- "open": [Function],
- "openSync": [Function],
- "read": [Function],
- "readSync": [Function],
- "write": [Function],
- "writeSync": [Function],
- "rename": [Function],
- "renameSync": [Function],
- "rmdir": [Function],
- "rmdirSync": [Function],
- "mkdir": [Function],
- "mkdirSync": [Function],
- "sendfile": [Function],
- "sendfileSync": [Function],
- "readdir": [Function],
- "readdirSync": [Function],
- "stat": [Function],
- "statSync": [Function],
- "unlink": [Function],
- "unlinkSync": [Function],
- "cat": [Function]
- }
- node> s=p.stat('/tmp/foobar').wait()
- {
- "dev": 234881025,
- "ino": 22624015,
- "mode": 33204,
- "nlink": 1,
- "uid": 501,
- "gid": 0,
- "rdev": 0,
- "size": 13,
- "blksize": 4096,
- "blocks": 8,
- "atime": {},
- "mtime": {},
- "ctime": {},
- "_checkModeProperty": [Function],
- "isDirectory": [Function],
- "isFile": [Function],
- "isBlockDevice": [Function],
- "isCharacterDevice": [Function],
- "isSymbolicLink": [Function],
- "isFIFO": [Function],
- "isSocket": [Function]
- }
- node> s=p.statSync('/tmp/foobar');
- Bus error
Add Comment
Please, Sign In to add comment