def get_commands(self): for path in self.get_paths(): yield Command.Truncate(path)
def get_commands(self): # truncate real file yield Command.Truncate(self.pathname) # real file, should succeed yield Command.Delete(self.pathname)