269 "FileSystem,", |
269 "FileSystem,", |
270 "DriveType", |
270 "DriveType", |
271 ] |
271 ] |
272 ) |
272 ) |
273 for line in to_str(r).split("\n"): |
273 for line in to_str(r).split("\n"): |
274 words = re.split("\s+", line) |
274 words = re.split(r"\s+", line) |
275 if len(words) >= 3 and words[1] == "2" and words[2] == "FAT": |
275 if len(words) >= 3 and words[1] == "2" and words[2] == "FAT": |
276 drives.append(words[0]) |
276 drives.append(words[0]) |
277 else: |
277 else: |
278 rootpath = "/media" |
278 rootpath = "/media" |
279 if sys.platform == "darwin": |
279 if sys.platform == "darwin": |