code: function showEntry(path, uid, entry, callback)
    {
      path = join(path, entry)
  
      getFilePath(path, function(error, filepath)
      {
        if(error)
        {
          if(error.code === 'ENOENT') return callback(null, false)
  
          return callback(error)
        }
  
        const file = filesInUse[filepath]
        if(!file)
        {
          // File not being used/owned, check if it's whitelisted
          for(var entry in whitelist)
            if(entry.test(path))
              return callback(null, true)
        }
  
        // Check if we are using the file ("owned" by us)
        else if(file.uid === uid) return callback(null, true)
  
        // Other users or not whitelisted
        fs.stat(filepath, function(error, stats)
        {
          if(error) return callback(error)
  
          // Real file is owned by us, or use 'owner' & 'others' file permissions
          callback(null, stats.uid === uid
                      || stats.mode & (file ? 0007 : SHOW_OWNER_MASK))
        })
      })
    }
docs: Directories