DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
if file exist in folder then delete in python
import os os.remove(fn) if os.path.exists(fn) else None #here fn - filename or filepath
PREVIOUS
NEXT
Tagged:
#file
#exist
#folder
#delete
#python
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit