shelljs / shelljs/shx

mv fails silently

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

Nobody has claimed this yet.

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

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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.