You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pathlib ABCs: check filename validity when copying
Use `target_path.joinpath('_').with_name(source_name)` to generate child
paths in a target directory when copying. This formula ensures `ValueError`
is raised if the filename is invalid for the target path type (e.g. empty
or contains a path separator.)
No change of public behaviour because `pathlib.Path` is the only exposed
implementation of `ReadablePath`, and validity issues arise only when the
source and target path parsers differ.
0 commit comments