mirror of
https://github.com/beetbox/beets.git
synced 2026-05-22 03:45:18 -04:00
Fix #522: treat copy/move args as dirs and process items accordingly
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user