Skip to content
Snippets Groups Projects
Select Git revision
  • a930ea262468079bb31c0633729d664b2586dc2d
  • master default
  • multipleinheritance
3 results

Element.html

Blame
  • try.py 307 B
    from os import listdir, remove
    from os.path import join
    from pathlib import Path
    
    def remove_temp(path: Path)-> None:
        # list file
        for filename in listdir(path):
            file =Path(join(path, filename))
            if file.is_file():
                remove(file)
        return
    
    path = '../img'
    remove_temp(path)