DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python check if file exists
import os os.path.exists("file.txt") # Or folder, will return true or false
Source by www.guru99.com #
PREVIOUS
NEXT
Tagged:
#python
#check
#file
#exists
ADD COMMENT
Topic
COMMENT
Name
7+5 =
Submit