Example #1
0
 def get_eff_fullpath(self, *args):
     _base = local_file_utils.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 = local_file_utils.normpath(_eff_path, _base)
     return _res
    def collect_files(self):
        """Collects information about files that are included resp. excluded in
        the backup.
        """
        self.__prepare_collecting()
        self.__compile_excl_regex()
        self.__prepare_explicit_flists()
        util.enable_timeout_alarm()

        # We have now every thing we need , the rexclude, excludelist, includelist and already stored
        self.__logger.debug("Creation of the complete exclude list.")

        # walk recursively into paths defined as includes (therefore don't call nested paths)
        for _incl in self.__snapshot.get_eff_incl_filelst_not_nested():
            _incl = local_file_utils.normpath(_incl)
            self._check_for_excludes(_incl)
 def normpath(cls, *args):
     return local_file_utils.normpath(*args)
Example #4
0
 def get_snapshot_path(self, snpname):
     _base = self.query_mount_uri()
     _snppath = local_file_utils.normpath(_base, snpname)
     return _snppath
Example #5
0
 def normpath(cls, *args):
     """
     :todo: Implement GIO method!
     """
     return local_file_utils.normpath(*args)