Sunday, 16 April 2017

How to determine if directory is a symbolic link

I ran fs.lstat and I get these stats for a directory:

Stats {
  dev: 16777220,
  mode: 16877,
  nlink: 8,
  uid: 501,
  gid: 20,
  rdev: 0,
  blksize: 4096,
  ino: 7366885,
  size: 272,
  blocks: 0,
  atime: 2017-04-16T23:18:17.000Z,
  mtime: 2017-04-16T23:14:49.000Z,
  ctime: 2017-04-16T23:14:49.000Z,
  birthtime: 2017-04-16T23:14:49.000Z }

How I can determine if this directory is a symbolic link?



via Alexander Mills

No comments:

Post a Comment