Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions beets/importer/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,10 +870,12 @@ def handlers(cls) -> list[ArchiveHandler]:
return _handlers

def cleanup(self, copy=False, delete=False, move=False):
"""Remove the temporary extraction directory. In ``move`` mode,
if the extraction directory is empty after the pipeline has run
(i.e. every file in the archive was successfully imported)
also remove the source archive. Archives are preserved on
"""Remove the temporary extraction directory and the archive if in
``move`` mode.
Comment thread
snystrom marked this conversation as resolved.
Outdated

In ``move`` mode, if the extraction directory is empty after the
pipeline has run (i.e. every file in the archive was successfully
imported) also remove the source archive. Archives are preserved on
partial imports and in non-move modes.
"""
if not self.extracted:
Expand Down