|
|
|
| [Python] if exist ? par lonewolfs |
samedi 2 juin 2007 à 18:44:05 |
Configuration: Linux Firefox 2.0.0.4
Salut,
D'abard désolé mais je ne prog pas avec ce langage mais j'ai trouvé un source qui fait ça avec même beaucoup plus de chose alors si tu arrives à le comprendre tu auras ta solution : http://www.chiroux.com/un_script_en_python_pour_verifier_ses_sauvegardes.html voilà @+ |
Merci pour le lien, je regarde ca de près.
Amitiés |
C'est os.path.exists:
http://docs.python.org/lib/module-os.path.html ..et le...le...enfin, non parce c'est...ya...quand...bah tu sais là le... |
|
Vérifier l'existence d'un fichier: os.path.isfile()
Vérifier l'existence d'un répertoire: os.path.isdir() Dans le module os.path :-) |
Merci beaucoup a tous.
Amitiés |
| 24/05 10h42 | Mysql : IF EXISTS dans SELECT | Programmation | 25/05 09h14 | 2 |
| 24/01 15h53 | mysql: INSERT IF NOT EXISTS | Programmation | 30/01 12h42 | 6 |
| 26/03 21h01 | [python / PIL] | Programmation | 27/03 10h42 | 4 |
| 26/03 12h23 | [Python]Probleme chargement | Programmation | 14/04 13h06 | 5 |