sh: Update xdg directory auto creation

Improved the automatic directory creation somewhat:
It now looks for either a file existing there (could be a directory,
could be an actual file), or a symbolic link pointing somewhere else.

Only if none of those things are at the xdg location will it try to
create a new directory there.

Additionally, it will set the correct permissions for the whole folder
chain being created, NOT just for the last folder in the chain.

vifm: Switch to new xdg directory structure
This commit is contained in:
Marty Oehme 2021-04-13 09:17:54 +02:00
parent dd71bd5002
commit 0d978f7673
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 26 additions and 12 deletions

View file

@ -118,7 +118,6 @@ set findprg='fd %A --hidden --exclude .git --exclude node_modules'
mark h ~/
mark d ~/downloads/
mark p ~/projects/
mark s ~/projects/studentassistant/
mark i ~/pictures/
mark v ~/videos/
mark n ~/documents/notes/