code: function getType(lstatRes) {
      if (lstatRes.lstat.isDirectory()) {
          return 'Directory';
      }
      if (lstatRes.lstat.isFile()) {
          return 'File';
      }
      if (lstatRes.lstat.isSymbolicLink()) {
          return 'SymbolicLink';
      }
  }
docs: A directory structure representation
  { type: "Directory", content: { "data.txt": { type: "File" } }
  @typedef {Object} DirectoryStructure
  @property {string} type File type, e.g., Directory, File, Symlink
  @property {Object.<string, DirectoryStructure>} [content] Content if directory.