---
title: "Comment by Shevach Riabtsev on \"File Organizing with Python: Rename, Move, Copy & Delete Files and Folders\" | Hashnode"
description: "some folders and files are special and starting with the point, e.g. &#39;.git&#39; i use the following script to ignore point-starting files and folder: import"
url: "https://hashnode.com/posts/file-organizing-python/629c8f12fe616239d48f5e7e/comment/62a439f8165482d2b3eeaf56"
---

[Discussion](https://hashnode.com/posts/file-organizing-python/629c8f12fe616239d48f5e7e)

Comment [File Organizing with Python: Rename, Move, Copy & Delete Files and Folders](https://hashnode.com/posts/file-organizing-python/629c8f12fe616239d48f5e7e)

[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))
```
