check if files exist using bash code example
Example 1: zsh check if file exists
FILE=/etc/resolv.conf
if [[ -f "$FILE" ]]; then
echo "$FILE exists."
fi
Example 2: if file exist
file_exists ( string $filename ) : bool
FILE=/etc/resolv.conf
if [[ -f "$FILE" ]]; then
echo "$FILE exists."
fi
file_exists ( string $filename ) : bool