Go-ipfs: `ipfs add -r directory` doesn't upload files and directories with dot prefix

Created on 16 Jun 2018  路  4Comments  路  Source: ipfs/go-ipfs

When I try to upload a directory including a .config file and a .git directory, IPFS uploads everything but those files and folders which are prefixed by a dot. I cannot imagine that this is a wanted feature, so I decided to open this issue.

kinbug statublocked

Most helpful comment

You can pass -H to include hidden files. I also can't imagine why we exclude hidden files by default.

All 4 comments

You can pass -H to include hidden files. I also can't imagine why we exclude hidden files by default.

Unfortunately, fixing this would break too much. We'll have to reconsider in the next iteration of the API.

(closing as we can't fix this right now)

I vote against adding .hidden files by default as it is historical behavior, I rely on this behavior on automatic scripts which publish sites to IPNS. They shall not make it available via IPFS gateways stuff like .htaccess (bad) or .env (VERY bad).

I would happily change all my scripts but if such a change happen, there SHOULD be warnings everywhere so users don't make it "forever" available unwanted files.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JesseWeinstein picture JesseWeinstein  路  4Comments

magik6k picture magik6k  路  3Comments

funkyfuture picture funkyfuture  路  3Comments

djdv picture djdv  路  3Comments

zignig picture zignig  路  3Comments