mutapath.Path.listdir

Path.listdir() → List of items in this directory.[source]

Use files() or dirs() instead if you want a listing of just files or just subdirectories.

The elements of the list are Path objects.

With the optional match argument, a callable, only return items whose names match the given pattern.

See also

files(), dirs()