def __init__(self, path, stat):
        self.path = path
        self.cachestat = None

        if stat:
            path = self.path
        else:
            path = None
        self.cachestat = filecachesubentry.stat(path)