Concept Flow - File test operators (-f, -d, -e, -r, -w, -x)
Start
Check file existence (-e)
Check if regular file (-f)
Output: It's a file
Check if directory (-d)
Output: It's a directory
Output: Exists but not file/dir
Output: Does not exist
Check permissions (-r, -w, -x)
Output permission results
End
The script checks if a file exists, then tests if it is a regular file or directory, and finally checks read, write, and execute permissions.