Loading karaokatalog/deduplicate/instructions/DeleteInstruction.py +6 −2 Changes for karaokatalog/deduplicate/instructions/DeleteInstruction.py: 6 added lines, 2 removed lines. Original line number Diff line number Diff line from dataclasses import dataclass from pathlib import Path from karaokatalog.deduplicate.instructions.Instruction import Instruction @dataclass(frozen=True) class DeleteInstruction(Instruction): # TODO Add file to delete """ Deletes the given path (might point to a file, a folder or a link), no questions asked. """ path_to_delete: Path def __call__(self) -> None: pass # TODO Implement self.path_to_delete.unlink() Loading
karaokatalog/deduplicate/instructions/DeleteInstruction.py +6 −2 Changes for karaokatalog/deduplicate/instructions/DeleteInstruction.py: 6 added lines, 2 removed lines. Original line number Diff line number Diff line from dataclasses import dataclass from pathlib import Path from karaokatalog.deduplicate.instructions.Instruction import Instruction @dataclass(frozen=True) class DeleteInstruction(Instruction): # TODO Add file to delete """ Deletes the given path (might point to a file, a folder or a link), no questions asked. """ path_to_delete: Path def __call__(self) -> None: pass # TODO Implement self.path_to_delete.unlink()