checking the existence of a fiel

Jerome Vacher jerome.vacher at tts.thomson-csf.com
Tue Jul 11 12:34:30 EDT 2000


hi back

import os
if os.path.isfile(<your file>):
    <do_what_you_want>

easy
Jerry, the foolish dracomorpheus

"Fernando Rodríguez" a écrit :

> Hi!
>
>     How can I check if a file exists? O:-)
>
> TIA
>
> --
>
> ---------------------------------------
> Fernando Rodríguez




More information about the Python-list mailing list