[Python-Dev] Remaining decisions on PEP 471 -- os.scandir()

Victor Stinner victor.stinner at gmail.com
Mon Jul 14 10:31:00 CEST 2014


2014-07-14 6:52 GMT+02:00 Ethan Furman <ethan at stoneleaf.us>:
> We shoIf you put the option on scandir(), you uld have a flag for that, and default it to False:
>
>   scandir(path, *, followlinks=False, info=None, onerror=None)

What happens to name and full_name with followlinks=True? Do they
contain the name in the directory (name of the symlink) or name of the
linked file?

So it means that is_dir() may or may not follow symlinks depending how
the object was built?

Victor


More information about the Python-Dev mailing list