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

docs: document --parents flag for files.write command #349

Merged
merged 2 commits into from
Aug 28, 2018

Conversation

achingbrain
Copy link
Collaborator

Also adds a test.

Already supported in js-ipfs, go-ipfs requires ipfs/kubo#5359 to be merged and released

Also adds a test.

Already supported in `js-ipfs`, `go-ipfs` requires ipfs/kubo#5359
to be merged and released
@ghost ghost assigned achingbrain Aug 9, 2018
@ghost ghost added the in progress label Aug 9, 2018
@achingbrain achingbrain requested review from alanshaw and daviddias and removed request for travisperson and victorb August 9, 2018 11:23
@@ -48,5 +48,14 @@ module.exports = (createCommon, options) => {
done()
})
})

it('should write to deeply nested non existent file with create and parents flags, expect no error', function (done) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This test doesn't actually test if a parent directory is being created, only that the function doesn't error

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's true. Neither do the other tests present, nor do the related go-ipfs sharness tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

😢

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks better now though! Thanks for fixing it + the other test

@achingbrain achingbrain force-pushed the document-parents-flag-for-write-command branch 2 times, most recently from 8fc2e29 to 40e5979 Compare August 9, 2018 11:49
@achingbrain achingbrain force-pushed the document-parents-flag-for-write-command branch from 40e5979 to 3835a06 Compare August 9, 2018 11:51
@alanshaw alanshaw merged commit e5f5b59 into master Aug 28, 2018
@alanshaw alanshaw deleted the document-parents-flag-for-write-command branch August 28, 2018 09:23
@ghost ghost removed the in progress label Aug 28, 2018
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.

3 participants