import commands as io
while True:
  line = input("$ ").split(" ")
  if line[0] == 'l':
    if len(line) < 3:
      continue
    else:
      if len(line) == 1:
       io.List('.')
      else:
        io.List(line[1])
  if line[0] == 'c':
    if len(line) != 3:
      print("E: Argument mismatch: c <src> <dest>")
    else:
      io.copy(line[1], line[2])
  if line[0] == 'm':
    if len(line) != 3:
      print("E: Argument mismatch: m <src> <dest>")
    else:
      e = io.move(line[1], line[2])
      if e == 1:
        print(f"{line[0+1]}: No such file or directory")
  if line[0] == 'd':
    if len(line) != 2:
      print("E: Argument mismatch: d <file>")
    else:
      c = input("Are you sure? <y/N>: ")
      if c.lower() == 'y':
        e = io.delete(line[0])
        if e == 1:
          print(f"E: {line[0]}: No such file or directory")

import commands as io
while True:
  line = input("$ ").split(" ")
  if line[0] == 'l':
    if len(line) < 3:
      continue
    else:
      if len(line) == 1:
       io.List('.')
      else:
        io.List(line[1])
  if line[0] == 'c':
    if len(line) != 3:
      print("E: Argument mismatch: c <src> <dest>")
    else:
      io.copy(line[1], line[2])
  if line[0] == 'm':
    if len(line) != 3:
      print("E: Argument mismatch: m <src> <dest>")
    else:
      e = io.move(line[1], line[2])
      if e == 1:
        print(f"{line[0+1]}: No such file or directory")
  if line[0] == 'd':
    if len(line) != 2:
      print("E: Argument mismatch: d <file>")
    else:
      c = input("Are you sure? <y/N>: ")
      if c.lower() == 'y':
        e = io.delete(line[0])
        if e == 1:
          print(f"E: {line[0]}: No such file or directory")
