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

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]LICENSE2 years ago752 0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago6.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]copy.js2 years ago7.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]is-windows.js2 years ago 59 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago1.9K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

copy-concurrently

Copy files, directories and symlinks

const copy = require('copy-concurrently')
copy('/path/to/thing', '/new/path/thing').then(() => {
  // this is now copied
}).catch(err => {
  // oh noooo
})

Copies files, directories and symlinks. Ownership is maintained when running as root, permissions are always maintained. On Windows, if symlinks are unavailable then junctions will be used.

PUBLIC INTERFACE

copy(from, to, [options]) → Promise

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

Options are:

Options can also include dependency injection:

EXTENSION INTERFACE

Ordinarily you'd only call copy above. But it's possible to use it's component functions directly. This is useful if, say, you're writing move-concurently.

copy.file(from, to, options) → Promise

Copies an ordinary file from to destination to. Uses fs-write-stream-atomic to ensure that the file is either entirely copied or not at all.

Options are:

copy.symlink(from, to, options) → Promise

Copies a symlink from to destination to. If you're using Windows and symlinking fails and what you're linking is a directory then junctions will be tried instead.

Options are:

copy.recurse(from, to, options) → Promise

Reads all of the files in directory from and adds them to the queue using recurseWith (by default copy.item).

Options are:

copy.item(from, to, options) → Promise

Copies some kind of from to destination to. This looks at the filetype and calls copy.file, copy.symlink or copy.recurse as appropriate.

Symlink copies are queued with a priority such that they happen after all file and directory copies as you can't create a junction on windows to a file that doesn't exist yet.

Options are:

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