Here's how to check if a file/directory exists in Bash.
https://itsfoss.com/bash-if-file-exists/
#bash
Bash Check if File or Directory Exists
Here are a few shell scripting examples to check if a file or directory exists in bash shell or not.Pratham Patel (It's FOSS)
Kancept
in reply to It's FOSS • • •typo in Example 1 with an errant ‘a’ after config in the path?
NVIM_DIR="${HOME}/.configa/nvim"
It's FOSS
in reply to Kancept • • •