use -e to test if dir or file