[Tutor] Amazing

alan.gauld@bt.com alan.gauld@bt.com
Thu, 13 Dec 2001 18:04:00 -0000


> determine if a file exists in a specified place. Something like
> exist(filename) really could be useful, but I cannot find any such!

try:

os.path.exists(path)

Hiding it inside the path submodule is kind of sneaky I know...

Alan g.