Esempio n. 1
0
 def get_commands(self):
     for path in self.get_paths():
         yield Command.Truncate(path)
Esempio n. 2
0
    def get_commands(self):
        # truncate real file
        yield Command.Truncate(self.pathname)

        # real file, should succeed
        yield Command.Delete(self.pathname)