andrewrk / andrewrk/node-mv

Moving files to parent folder gives error

オープン
#21 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
156
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

説明

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`?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。