def move_items(lib, dest, query, copy, album):
 (items, albums) = _do_query(lib, query, album, False)
 objs = (albums if album else items)
 action = ('Copying' if copy else 'Moving')
 entity = ('album' if album else 'item')
 log.info(u'{0} {1} {2}s.'.format(action, len(objs), entity))
 for obj in objs:
  log.debug(u'moving: {0}'.format(util.displayable_path(obj.path)))
  obj.move(copy, basedir=dest)
  obj.store()

def move_items ( lib , dest , query , copy , album ) : ( items , albums ) = _do_query ( lib , query , album , False ) objs = ( albums if album else items ) action = ( 'Copying' if copy else 'Moving' ) entity = ( 'album' if album else 'item' ) log . info ( u'{0} {1} {2}s.' . format ( action , len ( objs ) , entity ) ) for obj in objs : log . debug ( u'moving: {0}' . format ( util . displayable_path ( obj . path ) ) ) obj . move ( copy , basedir = dest ) obj . store ( )
moves or copies items to a new base directory .