mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Fix #522: treat copy/move args as dirs and process items accordingly
This commit is contained in:
parent
2c1606a595
commit
ecff56fc44
1 changed files with 2 additions and 2 deletions
|
|
@ -30,10 +30,10 @@ def _process_item(item, lib, copy=False, move=False, delete=False,
|
|||
"""Process Item `item` in `lib`.
|
||||
"""
|
||||
if copy:
|
||||
item.move_file(dest=copy, copy=True)
|
||||
item.move(basedir=copy, copy=True)
|
||||
item.store()
|
||||
if move:
|
||||
item.move_file(dest=move, copy=False)
|
||||
item.move(basedir=move, copy=False)
|
||||
item.store()
|
||||
if delete:
|
||||
item.remove(delete=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue