copy-files-from-to icon indicating copy to clipboard operation
copy-files-from-to copied to clipboard

Directory Structure Borked When Path Finishes in Forward Slash

Open x80486 opened this issue 1 year ago • 2 comments

Description

I have the following configuration for a block:

{
  "from": "node_modules/htmx.org/dist/",
  "to": "assets/htmx.org/"
}

This should work. The result should be all the content from node_modules/htmx.org/dist/ recursively copied over to assets/htmx.org/ — including dist/.

The current behavior is a little bit off, because it's using the project name as the destination sub-directory, instead of dist/.

[x80486@uplink:~/project-name]$ tree -A assets/
assets/
├── htmx.org
│   └── project-name
│       ├── htmx.amd.js
│       ├── htmx.cjs.js
│       ├── htmx.esm.js
│       ├── htmx.js
│       ├── htmx.min.js
│       └── htmx.min.js.gz
└── styles
    └── global.css

If I just use "node_modules/htmx.org/dist" with no forward slash in the end, it works fine.

Context

[x80486@uplink:~]$ uname -a 
Linux uplink 6.6.34-1-lts #1 SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 14:45:31 +0000 x86_64 GNU/Linux

x80486 avatar Jun 26 '24 00:06 x80486