---
title: "Discussion on \"File Organizing with Python: Rename, Move, Copy & Delete Files and Folders\" | Hashnode"
description: "Discussion on \"File Organizing with Python: Rename, Move, Copy & Delete Files and Folders\". Learn how to automate file organization in Python"
url: "https://hashnode.com/posts/file-organizing-python/629c8f12fe616239d48f5e7e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [File Organizing with Python: Rename, Move, Copy & Delete Files and Folders](https://patloeber.hashnode.dev/file-organizing-python?utm_source=hashnode&utm_medium=feed)

Learn how to automate file organization in Python

Jun 5, 2022 · 3 min read · patloeber.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#automation](https://hashnode.com/tag/automation)

## Written by

[Patrick Loeber](https://hashnode.com/@patloeber)

@patloeber

  
[View profile](https://hashnode.com/@patloeber)

Creating content about Python and ML

## Responses 2

Markdown supported · ⌘↵ to post

[Shevach Riabtsev](https://hashnode.com/@shevach547)

[Jun 11, 2022](https://hashnode.com/posts/file-organizing-python/629c8f12fe616239d48f5e7e/comment/62a439f8165482d2b3eeaf56)

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](https://hashnode.com/@mszeles)

[Jun 5, 2022](https://hashnode.com/posts/file-organizing-python/629c8f12fe616239d48f5e7e/comment/629cd15bcfa70a3fd32d8625)

Great article, Patrick. 👏👏👏
