n3dr icon indicating copy to clipboard operation
n3dr copied to clipboard

Npm upload doesn’t handle folders

Open prog99 opened this issue 4 years ago • 4 comments

What happened: When I do an upload to an npm repo from a folder with nested folders it gets a fatal error that folder name is a directory.

What you expected to happen: It should handle folders. It managed to backup a repo with them preserving the structure.

How to reproduce it (as minimally and precisely as possible): Create a nested folder structure and attempt to upload

Anything else we need to know?: n3dr handles downloading a repo with nested folders just fine and recreates this successfully

Environment:

  • nexus version: 3.30.1-01
  • n3dr version (use n3dr -v): built from source today
  • OS (e.g: cat /etc/os-release): macOS catalina
  • Kernel (e.g. uname -a):
  • Others:

prog99 avatar Dec 13 '21 14:12 prog99

Did you use the repositories or repositoriesV2 command?

030 avatar Dec 18 '21 07:12 030

Documentation confusion, works as per developers suggestion

prog99 avatar Dec 21 '21 07:12 prog99

I am facing the same issue , i have tried with both repositories and repoistoriesv2. how can i fix this?

deegupt4 avatar Apr 27 '22 06:04 deegupt4

@deegupt4 Could you indicate what command was run? Did you specify -r and did you run the command from the root, e.g. if repo resides in /tmp/some-repo and the n3dr command should be run from /tmp or the directory-prefix command should be used.

030 avatar Apr 27 '22 17:04 030

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 09 '22 00:09 stale[bot]