Python is the perfect tool to automate file organization. In this article you will learn how to use Python to rename, move, copy, and delete files and folders. I also included an example script that cleans up your Desktop. If you prefer a video, you ...

Markdown supported · ⌘↵ to post
Shevach Riabtsev
some folders and files are special and starting with the point, e.g. '.git'
i use the following script to ignore point-starting files and folder:
import os
for file in os.listdir():
# split into base name and extension name, ext = os.path.splitext(file) if name[0]!=".": print("%20s %5s" %(name,ext))