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

Check for read-only and hide del,move,copy,move buttons and footer #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jipok
Copy link

@Jipok Jipok commented Feb 26, 2024

I googled for a long time and could not find any standard for checking whether a directory is read-only. So I implemented a simple check in the form of PUT to the folder. Servers that are configured for read-only give 405, and if writing is allowed, then another error.
It seems completely safe. (Well, the front never calls getChildren on a file, but only in this case it will overwrite the file)

I'm not a web developer and this is my first time writing in TypeScript. I don’t fully understand the architecture of the project, but it seems I implemented everything correctly. The only thing I couldn't fix was the delay in the disappearance of the footer. For some reason he appears instantly.

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.

1 participant