Esempio n. 1
0
 def get_eff_fullpath(self, *args):
     _base = GioOperations.normpath(*args)
     _eff_path = self.get_eff_path()
     self._logger.debug("Effective path: `%s`" % _eff_path)
     self._logger.debug("Base path: `%s`" % _base)
     _res = None
     if _eff_path is not None:
         _res = GioOperations.normpath(_eff_path, _base)
     return _res
Esempio n. 2
0
 def dest_path_exists(self):
     """The effective path denotes the local mountpoint of the actual remote or local target.
     It is required in order to give it to TAR as parameter (tar does not support gio).
     It is checked using GIO and native access functions.
     """
     _path = self.query_mount_uri()
     _res_gio = GioOperations.path_exists(_path)
     return _res_gio
Esempio n. 3
0
 def get_snapshot_path(self, snpname):
     _base = self.query_mount_uri()
     _snppath = GioOperations.normpath(_base, snpname)
     return _snppath
Esempio n. 4
0
 def get_eff_path(self):
     _path = self.query_mount_uri()
     _eff_path = GioOperations.get_eff_path(_path)
     return _eff_path