Snippets Collections
for dirpath, dirnames, filenames in os.walk("./Test/"):
    # Remove regular files, ignore directories
    for filename in filenames:
        os.unlink(os.path.join(dirpath, filename))
star

Thu Nov 24 2022 13:57:45 GMT+0000 (Coordinated Universal Time)

#python #removefiles #folder

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension