Python: Getting file creation time

@MU14531453 Thanks for the detailed explanation!

panic: ls: invalid option: flag provided but not defined: -1 /tmp/foo

Looks like ls on Windows does not support the -1 flag. Using WSL should help resolve the issue.

The modification time is needed to recover the order in which listed filenames are sorted

Well, by default ls sorts files alphabetically by name in ascending order: