file test operator

Xiangdong Pan xd_pan at yahoo.com
Sun Aug 11 01:04:01 CEST 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