Rodrigo Bistolfi committed dfe5efd

Implemented path() in

Comments (0)

Files changed (1)


         format_partition(self.device_path, filesystem)
+    def path(self):
+        """Return the device path (only for interface compatibility with
+        Disk)
+        """
+        return self.device_path
     def all(cls):
         """Return all the partitions in the system
     def _get_size_from_hw(self, unit="GiB"):
         """ Returns disk size, by default in GB, unit can be GB or MB
         This method is used internally when the disk is not initialized.
         pow = 2 if unit == "MiB" else 3
         cylinders,  heads,  sectors = self._device.hardwareGeometry
     def has_partition_table(self):
         """Return True if the disk has a partition table.  False otherwise
         return self._disk is not None