Skip to content

Remove or scope down FileSystemHandle.moveTo() #53

@pwnall

Description

@pwnall

FileSystemHandle.moveTo() is a new capability when it can carry out the move atomically. If the source and the target are in different file systems, the implementation needs to fall back to copying FileSystemHandle.copyTo() and removing (FileSystemHandle.remove() / FileSystemDirectoryHandle.removeRecursively()).

In #52 I argue that we shouldn't provide copyTo(). I think the argument applies here as well. I think we should either nix moveTo() for now, or scope it down to the new capability. In the latter case, we'd have the method fail if the move cannot be performed atomically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions