Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

feat: Unlink files locally #1043

Closed
wants to merge 0 commits into from
Closed

feat: Unlink files locally #1043

wants to merge 0 commits into from

Conversation

AquiGorka
Copy link
Member

@AquiGorka AquiGorka commented Oct 20, 2017

This change adds the method unlink to the files component.

I have read the discussiones (here & here) and understand files are not deleted from the network (if another peer has pinned them, then the files can still be distributed).

We are working on a web project where we add files to the network and we wanted to remove the files to clear some space locally. With this method the files get unlinked locally.

@AquiGorka AquiGorka changed the title Unlink files locally feat: Unlink files locally Oct 20, 2017
@@ -120,6 +120,23 @@ module.exports = function files (self) {
getPull: promisify((ipfsPath, callback) => {
callback(null, exporter(ipfsPath, self._ipldResolver))
})
Copy link

Choose a reason for hiding this comment

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

Looks like you forgot a comma at the end of this function. I think that's why the build failed.

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