Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Conversation

JeffDownie
Copy link
Contributor

Just passes through the option as specified in the glob npm module

https://www.npmjs.com/package/glob#dots

Copy link
Contributor

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is looking good to me, but I would feel more safe if the tests actually check the hash returned to one that was produced by the go-ipfs cli. Mind adding that? Thank you :)

README.md Outdated
Reads a file or folder from `path` on the filesystem and adds it to IPFS. Options:
- **recursive**: If `path` is a directory, use option `{ recursive: true }` to add the directory and all its sub-directories.
- **ignore**: To exclude fileglobs from the directory, use option `{ ignore: ['ignore/this/folder/**', 'and/this/file'] }`.
- **dot**: Dotfiles (files or folders starting with a `.`, for example, `.git/`) are not included by default. To add them, use the option `{ dot: true }`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go-ipfs calls these 'hidden', could you change this to 'hidden' for the sake of consistency?

* Changed `dot` option to `hidden` to match go-ipfs
* Asserted hidden file hash in test for safety
Copy link
Contributor

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JeffDownie you rock!

@daviddias daviddias merged commit eae6e1a into ipfs-inactive:master Jan 12, 2017
@daviddias daviddias removed the ready label Jan 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants