andrewrk / andrewrk/node-mv

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

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
156
Forks
18
PR merge metrics
No merged PRs in 30d

Description

## 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.