mv fails silently
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 51
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 1
Description
- be on windows (10)
- run
shx mv dist/source/* dist/dest - apparently works
- actually, some dirs inside
dist/sourcewere not moved because of a randomnpm ERR! Error: EPERM: operation not permitted, renamethat was swallowed by this try catch
expected: shx/shelljs should report the error
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100