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

Allow symlinked folder within root directory #4863

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

bartowski1182
Copy link
Contributor

@bartowski1182 bartowski1182 commented Dec 9, 2023

Checklist:

This change removes resolving folder paths such that symlinked folders will now function, while still maintaining the original checks to make sure that changes aren't being made outside the root folder.

So any folders that have a relative path containing ../ (such as ~/home/presets, ../presets, /presets) will fail, but if you create a folder within your root folder of the project and symlink it outside, that will be fine

Tested adding a file and deleting a file which still work properly, tested trying to save outside the root folder which still fails properly

Ideally I will also look at having it fail more gracefully, since in its current state it just causes an error output in CLI and breaks the UI until you reload if you pass in an invalid path (which is the current behaviour in master, not caused by my changes)

@bartowski1182 bartowski1182 force-pushed the noneabove1182/allowSymlink branch from beb3242 to 112cc94 Compare December 10, 2023 00:26
@oobabooga oobabooga merged commit f511567 into oobabooga:dev Dec 13, 2023
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.

2 participants