Logo

Programming-Idioms

History of Idiom 180 > diff from v9 to v10

Edit summary for version 10 by Oldboy:
New Python implementation by user [Oldboy]

Version 9

2019-02-01, 05:44:07

Version 10

2019-02-11, 19:56:22

Idiom #180 List files in directory

Create list x containing the contents of directory d.

x may contain files and subfolders.
No recursive subfolder listing.

Idiom #180 List files in directory

Create list x containing the contents of directory d.

x may contain files and subfolders.
No recursive subfolder listing.

Extra Keywords
folder ls dir listing
Extra Keywords
folder ls dir listing
Imports
import os
Code
x = os.listdir(d)