gentle-fs

WebJar for gentle-fs

License

License

Artistic-License-2.0
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gentle-fs
Last Version

Last Version

2.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

gentle-fs
WebJar for gentle-fs
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/npm/gentle-fs

Download gentle-fs

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gentle-fs/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gentle-fs</artifactId>
    <version>2.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gentle-fs/
implementation 'org.webjars.npm:gentle-fs:2.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/gentle-fs/
implementation ("org.webjars.npm:gentle-fs:2.3.1")
'org.webjars.npm:gentle-fs:jar:2.3.1'
<dependency org="org.webjars.npm" name="gentle-fs" rev="2.3.1">
  <artifact name="gentle-fs" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gentle-fs', version='2.3.1')
)
libraryDependencies += "org.webjars.npm" % "gentle-fs" % "2.3.1"
[org.webjars.npm/gentle-fs "2.3.1"]

Dependencies

compile (11)

Group / Artifact Type Version
org.webjars.npm : aproba jar [1.1.2,2)
org.webjars.npm : infer-owner jar [1.0.4,2)
org.webjars.npm : path-is-inside jar [1.0.2,2)
org.webjars.npm : graceful-fs jar [4.1.11,5)
org.webjars.npm : slide jar [1.1.6,2)
org.webjars.npm : cmd-shim jar [3.0.3,4)
org.webjars.npm : chownr jar [1.1.2,2)
org.webjars.npm : iferr jar [0.1.5,0.2)
org.webjars.npm : read-cmd-shim jar [1.0.1,2)
org.webjars.npm : fs-vacuum jar [1.2.10,2)
org.webjars.npm : mkdirp jar [0.5.1,0.6)

Project Modules

There are no modules declared in this project.

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)
org.webjars.npm

npm

node package manager

Versions

Version
2.3.1
2.3.0
2.2.1
2.0.1