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

feat: meta for ipfs.get#1235

Open
alanshaw wants to merge 3 commits into
masterfrom
feat/meta-for-get
Open

feat: meta for ipfs.get#1235
alanshaw wants to merge 3 commits into
masterfrom
feat/meta-for-get

Conversation

@alanshaw

@alanshaw alanshaw commented Feb 7, 2020

Copy link
Copy Markdown
Contributor

alanshaw pushed a commit to ipfs/js-ipfs that referenced this pull request Feb 9, 2020
Pack file `mtime` and `mode` if set

Depends on:

* [ ] #2758
* [ ] ipfs-inactive/js-ipfs-http-client#1235
Comment thread src/get.js
for await (const { header, body } of extractor(toIterable(res.body))) {
const file = {
path: header.name,
mtime: { secs: Math.floor(header.mtime.getTime() / 1000) },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can this support the nsecs mtime component too? At the moment I think it's going to throw away anything that isn't a whole second.

@achingbrain

Copy link
Copy Markdown
Collaborator

Could you merge this into ipfs/js-ipfs#2759 please?

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