Skip to content

Remove copy and move methods.#50

Merged
mkruisselbrink merged 1 commit into
masterfrom
no-copy-move
May 30, 2019
Merged

Remove copy and move methods.#50
mkruisselbrink merged 1 commit into
masterfrom
no-copy-move

Conversation

@mkruisselbrink

@mkruisselbrink mkruisselbrink commented May 14, 2019

Copy link
Copy Markdown
Contributor

These methods don't provide much value, since it is possible to get the
same behavior using the existing read and write APIs.

This fixes #52 and #53

These methods don't provide much value, since it is possible to get the
same behavior using the existing read and write APIs.
@mkruisselbrink mkruisselbrink requested a review from pwnall May 14, 2019 19:26

@pwnall pwnall left a comment

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.

LGTM. Thank you for the simplification!

@mkruisselbrink mkruisselbrink merged commit 633feed into master May 30, 2019
@mkruisselbrink mkruisselbrink deleted the no-copy-move branch April 17, 2020 00:02
@jimmywarting

Copy link
Copy Markdown

So simply renaming a file requires you to read the hole file and write it to the new destination (essentially copying the hole file) and then deleting the original file 😞

kind of wasteful operation and not so fast performant...

@jimmywarting

Copy link
Copy Markdown

Say you want to rename a 4gb movie and only have 2 gb free space... problematic.

@a-sully

a-sully commented Jun 6, 2022

Copy link
Copy Markdown
Collaborator

The PRs have unfortunately been in limbo for a while, but we hope to launch both move() and remove() relatively soon.

move() of file handles within the Origin Private File System is currently supported (though not yet specified)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove FileSystemHandle.copyTo()

4 participants