MD500_Pilot

Untitled

May 13th, 2021
597
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def get_new_drives():
  2.     device_glob = '/mnt/sd[a-z]/*'
  3.     new_drives = []
  4.     for device in device_glob:
  5.         new_drives.extend(Path('/dev').glob(device))
  6.     return new_drives
RAW Paste Data