Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement move capability for directory sharing #15088

Closed
ibeckermayer opened this issue Aug 1, 2022 · 1 comment
Closed

Implement move capability for directory sharing #15088

ibeckermayer opened this issue Aug 1, 2022 · 1 comment
Assignees
Labels
desktop-access feature-request Used for new features in Teleport, improvements to current should be #enhancements

Comments

@ibeckermayer
Copy link
Contributor

Currently, successfully fulfilling a TDP SharedDirectoryMoveRequest is unimplemented (the user will see an error modal) because (source)

The FileSystemHandle.move() method has shipped for files within the origin private file system (OPFS), is behind a flag for files if the source or destination is outside of the OPFS, and is not yet supported for directories.

One option for resolving this is to implement a move "manually" by (source):

creating a new file/directory, copying over data (recursively, in the case of a directory), and removing the original

however

This process is slow, error prone (e.g. disk full), and can require re-uploading files in some cases.

Ideally we will be able to use an inbuilt FileSystemHandle.move() method. The tracking issue appears to be whatwg/fs#10, and the closest thing I've found to a launch date is "relatively soon": WICG/file-system-access#50 (comment) (June 6, 2022)

@ibeckermayer ibeckermayer added feature-request Used for new features in Teleport, improvements to current should be #enhancements desktop-access labels Aug 1, 2022
@ibeckermayer ibeckermayer self-assigned this Aug 1, 2022
@ibeckermayer
Copy link
Contributor Author

This is more appropriate for webapps: gravitational/webapps#1064

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop-access feature-request Used for new features in Teleport, improvements to current should be #enhancements
Projects
None yet
Development

No branches or pull requests

1 participant