gentle-fs

Gentle Filesystem operations

This package is deprecated and will not be receiving further updates
Last updated 5 years ago by isaacs .
Artistic-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install gentle-fs 
SYNC missed versions from official npm registry.

gentle-fs npm version license Travis AppVeyor Coverage Status

gentle-fs is a standalone library for "gently" remove or link directories.

Install

$ npm install gentle-fs

Table of Contents

Example

// todo

Features

  • Performs filesystem operations "gently". Please see details in the API specs below for a more precise definition of "gently".

API

> rm(target, opts, cb)

Will delete all directories between target and opts.base, as long as they are empty. That is, if target is /a/b/c/d/e and base is /a/b, but /a/b/c has other files besides the d directory inside of it, /a/b/c will remain.

Example
rm(target, opts, cb)

> link(from, to, opts, cb)

If from is a real directory, and from is not the same directory as to, will symlink from to to, while also gently rming the to directory, and then call the callback. Otherwise, will call callback with an Error.

Example
link(from, to, opts, cb)

> linkIfExists(from, to, opts, cb)

Performs the same operation as link, except does nothing when from is the same as to, and calls the callback.

Example
linkIfExists(from, to, opts, cb)

Current Tags

  • 2.3.1                                ...           latest (5 years ago)

10 Versions

  • 2.3.1 [deprecated]           ...           5 years ago
  • 2.3.0 [deprecated]           ...           5 years ago
  • 2.2.1 [deprecated]           ...           5 years ago
  • 2.2.0 [deprecated]           ...           5 years ago
  • 2.1.0 [deprecated]           ...           5 years ago
  • 2.0.1 [deprecated]           ...           7 years ago
  • 2.0.0 [deprecated]           ...           7 years ago
  • 1.0.2 [deprecated]           ...           7 years ago
  • 1.0.1 [deprecated]           ...           7 years ago
  • 1.0.0 [deprecated]           ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (8)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |