def fill_cache(self, pty):
        console = Console(pty)
        with console.progress_bar('Reading directory...', clear_on_finish=True):
            cwd = self.getcwd()
            for s in self.listdir_stat():
                self._stat_cache[(cwd, s.filename)] = s

# Handlers
Fill cache for current directory.
dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/scp_shell.py/CacheMixin.fill_cache