Пример #1
0
def lab3_ren(screen, *args):
    command = "REN"
    if args[0]:
        command += ' ' + ' '.join(args[0])

    result = format_output(command)
           
    screen.current_screen = result
Пример #2
0
def lab3_dir(screen, *args):
    command = "DIR"
    if args[0]:
        command += ' ' + ' '.join(args[0])
    else:
        command += screen.cwd

    result = format_output(command)

    screen.current_screen = result