Advertisement
MD500_Pilot

Untitled

May 13th, 2021
807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement