def __init__(self, path, model): self.name, self.path = utils.canon_path(path) self.model = model self.pfile = self.model.get_pfile(path) self.type = self.pfile.type self.timestamp = self.pfile.timestamp() self.modstamp = self.pfile.modstamp()
def _setup(self, path, model): self.name, self.path = utils.canon_path(path) self.model = model