Skip to content

Commit 9de81b1

Browse files
sepastianSebastian Gassner
authored andcommitted
Update shutil.rst
Filenames containing two dots ".." do not necessarily indicate relative path components. Only "../" identify a relative path component.
1 parent d50ea17 commit 9de81b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/shutil.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
703703
Never extract archives from untrusted sources without prior inspection.
704704
It is possible that files are created outside of the path specified in
705705
the *extract_dir* argument, e.g. members that have absolute filenames
706-
starting with "/" or filenames with two dots "..".
706+
starting with "/" or filenames with relative path components "../".
707707

708708
.. versionchanged:: 3.7
709709
Accepts a :term:`path-like object` for *filename* and *extract_dir*.

0 commit comments

Comments
 (0)