mv fails silently

Open
#211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
cli

Research direction

Start with src/mv.js, especially the try/catch at lines 103-115 linked in the issue. Reproduce the command shx mv dist/source/* dist/dest on Windows 10 with nested directories, then verify that an EPERM rename failure is reported instead of being swallowed.

Written by the indexing model from the issue text.

Description

  1. be on windows (10)
  2. run shx mv dist/source/* dist/dest
  3. apparently works
  4. actually, some dirs inside dist/source were not moved because of a random npm ERR! Error: EPERM: operation not permitted, rename that was swallowed by this try catch

expected: shx/shelljs should report the error

Dominant language
JavaScript
Stars
1.9k
Forks
52
Avg merge
3d 2h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from shelljs/shx

All issues in shelljs/shx

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.