> For the complete documentation index, see [llms.txt](https://bryan-guner.gitbook.io/my-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bryan-guner.gitbook.io/my-docs/pythonnotes/aux-exploration/subject/list-directory-contents.md).

# List Directory Contents

```python
import os

get_directory = input("Enter path : ")
d = os.listdir(get_directory)
for dir in d:
    currrent_path = os.path.abspath(dir)
    print(currrent_path)
```
