예제 #1
0
파일: linux.py 프로젝트: Aishou/lutris
 def get_fs_type_for_path(self, path):
     """Return the filesystem type a given path uses"""
     path_drive = get_drive_for_path(path)
     for drive in self.get_drives():
         for partition in drive.get("children", []):
             if "/dev/%s" % partition["name"] == path_drive:
                 return partition["fstype"]
예제 #2
0
 def get_fs_type_for_path(self, path):
     """Return the filesystem type a given path uses"""
     path_drive = get_drive_for_path(path)
     for drive in self.get_drives():
         for partition in drive.get("children", []):
             if "/dev/%s" % partition["name"] == path_drive:
                 return partition["fstype"]