src/fedoidcmsg/file_system.py
def sync(self):
        """
        Goes through the directory and builds a local cache based on
        the content of the directory.
        """
        if not os.path.isdir(self.fdir):
            os.makedirs(self.fdir)

        for f in os.listdir(self.fdir):
            fname = os.path.join(self.fdir, f)
            if not os.path.isfile(fname):
                continue
            if f in self.fmtime:
                if self.is_changed(f):
                    self.db[f] = self._read_info(fname)
            else:
                mtime = self.get_mtime(fname)
                self.db[f] = self._read_info(fname)
                self.fmtime[f] = mtime
def sync(self):
        """
        Goes through the directory and builds a local cache based on
        the content of the directory.
        """
        if not os.path.isdir(self.fdir):
            os.makedirs(self.fdir)

        for f in os.listdir(self.fdir):
            fname = os.path.join(self.fdir, f)
            if not os.path.isfile(fname):
                continue
            if f in self.fmtime:
                if self.is_changed(f):
                    self.db[f] = self._read_info(fname)
            else:
                mtime = self.get_mtime(fname)
                self.db[f] = self._read_info(fname)
                self.fmtime[f] = mtime
Goes through the directory and builds a local cache based on
        the content of the directory.