chipsenkbeil / distant

🚧 (Alpha stage software) Library and tooling that supports remote filesystem and process operations. 🚧

Home Page:https://distant.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix `distant fs set-permissions 'go-w' /path/to/file.txt`

chipsenkbeil opened this issue · comments

Currently, this is broken. We are applying a permission change to an empty mode (000) rather than the file's existing mode.

To fix this, we need to query for the file's mode first using a call to metadata and then update it using the symbolic mode information.

There were also issues with the distant-local implementation affecting setting write permissions.

Both of these issues have been resolved by 22f3c2d.

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.