File Organizing with Python: Rename, Move, Copy & Delete Files and Folders
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 ...
patloeber.hashnode.dev3 min read
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))