FILE=/etc/resolv.conf if [ -f "$FILE" ]; then echo "$FILE exists." else echo "$FILE does not exist." fi
>>> import os >>> os.path.isfile("d:\\Package1\\package1\\fibo.py") True >>> os.path.isfile("d:/Package1/package1/fibo.py") True >>> os.path.isfile("d:\\nonexisting.txt")
file_exists ( string $filename ) : bool