It is well described how to verify file existence or type, but there is much more information that can be easily verified inside shell script using nothing more then simple stat
command.
↧
How to check file metadata using shell script
↧