file test operator

Xiangdong Pan xd_pan at yahoo.com
Sat Aug 10 19:04:01 EDT 2002


Hi,

I'm wondering whether python has build-in file test operators, such as
-x for file is executable or -e for file exists or some similar
functions, like perl does. If not, how could I perform these kinds of
tests?

Thanks for help.

--Patrick



More information about the Python-list mailing list