FileSystemProvider: no way of handling permissions issues
Refs: https://github.com/Microsoft/vscode/issues/48421 **Setup:** * clone https://github.com/bpasero/remote-fs * F5 * click "Refresh" in the explorer * you should see the current working directory as a remote folder using the file system provider for scheme `datei://` I can think of 2 reasons why a permission error raises: * user needs elevated rights to change a file or folder * a file can be readonly (e.g. Windows) and to save it you need to first remove the readonly flag Currently there does not seem to be a way to signal a) to save as elevated user or b) to remove the readonly flag. I am not sure how relevant this is for any other file system provider that does not have these concepts but this is something our file service can do (via the options `overwriteReadonly` and `writeElevated`).
Posted by bpasero on Apr 25, 2018, 10:12 AM
Tags
Related issues
Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments
onboarding (Software)
Minecraft Dungeons II (1912410)
We are seeing the realtime result of MS buying Github and buying influence.
macOS 15 Sequoia clobbers _nixbld1-4 users
News + Polls
Implement Pylint
Add Zig
Unable to run sandboxed process when run as elevated under applocker
[Feature request] Show browser error overlay for runtime errors
FileSystemProvider: no way of handling permissions issues
Refs: https://github.com/Microsoft/vscode/issues/48421 **Setup:** * clone https://github.com/bpasero/remote-fs * F5 * click "Refresh" in the explorer * you should see the current working directory as a remote folder using the file system provider for scheme `datei://` I can think of 2 reasons why a permission error raises: * user needs elevated rights to change a file or folder * a file can be readonly (e.g. Windows) and to save it you need to first remove the readonly flag Currently there does not seem to be a way to signal a) to save as elevated user or b) to remove the readonly flag. I am not sure how relevant this is for any other file system provider that does not have these concepts but this is something our file service can do (via the options `overwriteReadonly` and `writeElevated`).
Comments (0)
No comments yet. Start the discussion.