Path.
listdir
Use files() or dirs() instead if you want a listing of just files or just subdirectories.
files()
dirs()
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()