daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest May 16th, 2018 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. node> p=require('posix');
  2. {
  3.  "Stats": [Function],
  4.  "close": [Function],
  5.  "closeSync": [Function],
  6.  "open": [Function],
  7.  "openSync": [Function],
  8.  "read": [Function],
  9.  "readSync": [Function],
  10.  "write": [Function],
  11.  "writeSync": [Function],
  12.  "rename": [Function],
  13.  "renameSync": [Function],
  14.  "rmdir": [Function],
  15.  "rmdirSync": [Function],
  16.  "mkdir": [Function],
  17.  "mkdirSync": [Function],
  18.  "sendfile": [Function],
  19.  "sendfileSync": [Function],
  20.  "readdir": [Function],
  21.  "readdirSync": [Function],
  22.  "stat": [Function],
  23.  "statSync": [Function],
  24.  "unlink": [Function],
  25.  "unlinkSync": [Function],
  26.  "cat": [Function]
  27. }
  28. node> s=p.stat('/tmp/foobar').wait()
  29. {
  30.  "dev": 234881025,
  31.  "ino": 22624015,
  32.  "mode": 33204,
  33.  "nlink": 1,
  34.  "uid": 501,
  35.  "gid": 0,
  36.  "rdev": 0,
  37.  "size": 13,
  38.  "blksize": 4096,
  39.  "blocks": 8,
  40.  "atime": {},
  41.  "mtime": {},
  42.  "ctime": {},
  43.  "_checkModeProperty": [Function],
  44.  "isDirectory": [Function],
  45.  "isFile": [Function],
  46.  "isBlockDevice": [Function],
  47.  "isCharacterDevice": [Function],
  48.  "isSymbolicLink": [Function],
  49.  "isFIFO": [Function],
  50.  "isSocket": [Function]
  51. }
  52. node> s=p.statSync('/tmp/foobar');
  53. Bus error
RAW Paste Data
Top