Search
 
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
Name
1+3 =