コード例 #1
0
ファイル: scp_shell.py プロジェクト: Duologic/python-deployer
 def fill_cache(self, pty):
     """ Fill cache for current directory. """
     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
コード例 #2
0
 def fill_cache(self, pty):
     """ Fill cache for current directory. """
     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