/ piacw.com / dev / final / node_modules / move-concurrently /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]LICENSE2 years ago752 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago1.9K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]move.js2 years ago2.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago2.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

move-concurrently

Move files and directories.

const move = require('move-concurrently')
move('/path/to/thing', '/new/path/thing').then(() => {
  // thing is now moved!
}).catch(err => {
  // oh no!
})

Uses rename to move things as fast as possible.

If you move across devices or on filesystems that don't support renaming large directories. That is, situations that result in rename returning the EXDEV error, then move will fallback to copy + delete.

When recursively copying directories it will first try to rename the contents before falling back to copying. While this will be slightly slower in true cross-device scenarios, it is MUCH faster in cases where the filesystem can't handle directory renames.

When copying ownership is maintained when running as root. Permissions are always maintained. On Windows, if symlinks are unavailable then junctions will be used.

INTERFACE

move(from, to, options) → Promise

Recursively moves from to to and resolves its promise when finished. If to already exists then the promise will be rejected with an EEXIST error.

Starts by trying to rename from to to.

Options are:

Options can also include dependency injection:

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80