Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_new_drives():
- device_glob = '/mnt/sd[a-z]/*'
- new_drives = []
- for device in device_glob:
- new_drives.extend(Path('/dev').glob(device))
- return new_drives
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement