Search posts, tags, users, and pages
Learn how to automate file organization in Python
Patrick Loeber
@patloeber
Creating content about Python and ML
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))
Miki Szeles
Great article, Patrick. πππ
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))