def minion_sort(params): '''Interactively sort all matches.''' match_files = get_match_files(args) if len(match_files) == 0: print(CLEAN_SORT_MESSAGE) else: brain.sort_files_interactive(match_files)
def minion_sort(params): '''Interactively sort all matches.''' match_files = get_match_files(args) if len(match_files) == 0: print CLEAN_SORT_MESSAGE else: brain.sort_files_interactive(match_files)
def minion_strays(args): ''' Run an interactive sort on the contents of any folders that only have one or two items. ''' match_files = brain.list_stray_files() total = len(match_files) if total == 0: print(CLEAN_STRAYS_MESSAGE) sys.exit() else: # print brain.getOutput('cal') brain.sort_files_interactive(match_files)
def minion_strays(args): ''' Run an interactive sort on the contents of any folders that only have one or two items. ''' match_files = brain.list_stray_files() total = len(match_files) if total == 0: print CLEAN_STRAYS_MESSAGE sys.exit() else: # print brain.getOutput('cal') brain.sort_files_interactive(match_files)