예제 #1
0
파일: minion.py 프로젝트: pavelki/minion
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)
예제 #2
0
파일: minion.py 프로젝트: rbianco3/minion
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)
예제 #3
0
파일: minion.py 프로젝트: pavelki/minion
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)
예제 #4
0
파일: minion.py 프로젝트: rbianco3/minion
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)