Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vfs-local

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vfs-local

A vfs implementation that works on the local filesystem, but with optional security constraints

  • 0.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by225%
Maintainers
3
Weekly downloads
 
Created
Source

Local Filesystem VFS

The local filesystem vfs is an implementation of the vfs interface that provides access to the local filesystem (local to the node process that requires it). In addition to providing basic filesystem access, it provides a sandbox to run a vfs as a virtual user. Your process can continue to run as root, but each vfs instance will restrict itself to what that user is allowed to do. Thus it's possible to implement a multi-tennent filesystem using a single process.

setup(fsOptions)

The module itself is a setup function that returns a vfs instance.

fsOptions can include:

  • fsOptions.uid - restricts access as if this user was running as
  • fsOptions.gid this uid/gid, create files as this user.
  • fsOptions.umask - default umask for creating files
  • fsOptions.root - root path to mount, this needs to be realpath'ed or it won't work.
  • fsOptions.skipSearchCheck - Skip the folder execute/search permission check on file open.
  • fsOptions.httpRoot - used for generating links in directory listing. It's where this fs is mounted over http.

FAQs

Package last updated on 06 Jul 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc