示例#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"]