def make_trashed_file(self, path): from .files import write_file write_file('%s/info/foo.trashinfo' % self.path, a_trashinfo(path)) write_file('%s/files/foo' % self.path)
def add_trashinfo(self, escaped_path_entry, formatted_deletion_date): self.having_file(a_trashinfo(escaped_path_entry, formatted_deletion_date))