Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
65438e9e
Unverified
Commit
65438e9e
authored
Dec 08, 2021
by
Philip Meier
Committed by
GitHub
Dec 08, 2021
Browse files
remove extraced archive if flag was set (#5055)
parent
5dc1e20b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
torchvision/datasets/utils.py
torchvision/datasets/utils.py
+2
-0
No files found.
torchvision/datasets/utils.py
View file @
65438e9e
...
...
@@ -407,6 +407,8 @@ def extract_archive(from_path: str, to_path: Optional[str] = None, remove_finish
extractor
=
_ARCHIVE_EXTRACTORS
[
archive_type
]
extractor
(
from_path
,
to_path
,
compression
)
if
remove_finished
:
os
.
remove
(
from_path
)
return
to_path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment