(self, mode, original, new_name)
mode can be "move", "copy", "overwrite"
mode can be "move", "copy", "overwrite"
mode can be move copy overwrite
def _setup(self, mode, original, new_name):
        '''mode can be "move", "copy", "overwrite"'''
        if mode == 'move' and original != dirname(new_name):
            return self._setup_move(original, new_name)
        overwrite = mode == 'overwrite'
        if mode == 'copy' or overwrite:
            return self._setup_copy(original, new_name, overwrite)
def _setup ( self , mode , original , new_name ) : if mode == 'move' and original != dirname ( new_name ) : return self . _setup_move ( original , new_name ) overwrite = mode == 'overwrite' if mode == 'copy' or overwrite : return self . _setup_copy ( original , new_name , overwrite )