Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Error: read <dirname>: is a directory with symlink subdir #270

Open
kmanley opened this issue May 2, 2020 · 0 comments
Open

Error: read <dirname>: is a directory with symlink subdir #270

kmanley opened this issue May 2, 2020 · 0 comments

Comments

@kmanley
Copy link

kmanley commented May 2, 2020

Given this directory structure with soft symlinked subdirs under the theme dir...

├── static
│   ├── img
│   │   ├── cat.jpg
│   │   ├── cat1.jpg
│   │   └── cat2.jpg
│   └── theme
│       ├── css -> ../../../../themes/falcon-v2.4.1/pages/assets/css
│       ├── js -> ../../../../themes/falcon-v2.4.1/pages/assets/js
│       └── lib -> ../../../../themes/falcon-v2.4.1/pages/assets/lib

and a .go file in the static directory with

var packrBox = packr.NewBox("./static")

I tried running packr 2.5.3 from the static dir

packr -v

Expected result:

  • no error and all assets under static directory get put in the packr box

Actual result

  • Packr prints Error: read /home/kevin/.../static/theme/css: is a directory and dumps usage

(It all works fine if I remove the symlinks in the theme subdir)

Is this a bug? Or should I not expect this to work? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant