• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
+ 1

How to chech if a file exists?

How can I check if a filename exists before creating a new one?

filespython3need_help
4th Aug 2020, 8:34 PM
...
... - avatar
2 Antworten
+ 9
os.path.exists('yourpath')
4th Aug 2020, 8:41 PM
HonFu
HonFu - avatar
+ 1
Thanks man
7th Aug 2020, 9:56 PM
...
... - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
My codebits section is full of deleted codes
12 Votes
Ai generated practices
1 Votes
Where did mess up....
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
I need a siren sound
0 Votes
Yo this is madness
0 Votes
How can i insert files?
1 Votes
Where can I find python and SQL projects to work on for my portfolio that are beginner to intermediate?
1 Votes
help!!! How to build portfolio? I am in last year of highschool and still noob lol
0 Votes