andrewrk / andrewrk/node-mv

When moving dir to destination that already exists, the source is simply deleted

Aperta
#30 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
156
Fork
18
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Steps to reproduce:

Move a directory to a location that already exists with `clobber` set to false.

## Expected behavior

An error is passed to the callback.

## Actual behavior

The source directory is deleted and no copy is made

## Reason

`npc` does not seem to error when asked to copy a directory on top of an existing file/directory, it just fails silently.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.