Snippets

Kevin Pichette List files in a Directory

Created by Kevin Pichette
1
2
3
4
5
6
7
8
import os

_path = '/Users/' #or some other path

_files = os.listdir(_path)

for _file in _files:
    print(_file)

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.