Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove file os python

import os
ch = os.chdir("Directory")  #for example: E:/../../
files = os.listdir()
for file in files:
    if "file name .format" in file:
        os.remove(file)
        
#code by fawlid
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #file #os #python
ADD COMMENT
Topic
Name
3+8 =