Prüfen ob Datei existiert
| ID | 192 |
|---|---|
| Link Reference | Not set |
| Link Credits | Not set |
| Link Technical Documentation | Not set |
| PlCodelang | Python |
| PlGroup | Filehandling |
| PlItemTitle | Prüfen ob Datei existiert |
| Code | import os filePath="/home/myUser/test.txt" if (os.path.isfile(filePath)): print "There it is! ;-)" else: print "Whow, file is missing at this place :-(" |
| Result Example |