DEV Community

Discussion on: Basic Bash Automation: A script to organize my downloads folder

Collapse
 
devilleee profile image
Deville

organize.sh does not have to be inside ~/Downloads, place it elsewhere and hardcode the download folder in the script.

Also, to avoid any errors while creating the target folders you can first perform a check on existence first. You can work with arrays and global path variables.

Collapse
 
devilleee profile image
Deville

Good thread though. The main issue with Downloads for me, at least, is the perpetual choice between rubbish and "to keep" files.