andrewrk / andrewrk/node-mv

Moving files to parent folder gives error

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

Description

I'm trying to move files from a subfolder to `process.cwd()` but when I try, it gives an `ENOTEMPTY` error.

```
{ [Error: ENOTEMPTY, rename '/Users/wouter/Dev/project-templates/project-template/bin/']
errno: -66,
code: 'ENOTEMPTY',
path: '/Users/wouter/Dev/project-templates/project-template/bin/' }
```

It seems like it's trying to rename the cwd (as I'm testing the cli I'm working on in the `bin` folder directly). The same thing happens when I use `npm link` and test it in a newly created test directory.

@andrewrk am I missing a setting or something, or is this just not possible with `mv`?

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.