#NEWLINE# def handle_move( self , source , target ) : #NEWLINE# #INDENT# if ( source not in files ) : #NEWLINE# #INDENT# for filename in list ( files ) : #NEWLINE# #INDENT# if filename . startswith ( source ) : #NEWLINE# #INDENT# new_filename = filename . replace ( source , target , 1 ) #NEWLINE# self . handle_move ( filename , new_filename ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# old_metadata = plug . get_metadata ( old_metadata ) #NEWLINE# new_metadata = plug . move_file ( old_metadata , target ) #NEWLINE# files . discard ( old_metadata . path ) #NEWLINE# if new_metadata : #NEWLINE# #INDENT# files . add ( new_metadata . path )