hess
asked on
checking existance of files
How would I go about seeing if a file exists?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You I was unaware of the dir function. Before i had been trying to use the on error statement and perposely cause errors but that wasn't behaveing nicely.
If the result is empty .. The file doesn't exist.
Another way is to check it's attributes using the getattr function.