Loading karaokatalog/instructions/MoveInstruction.py +1 −2 Changes for karaokatalog/instructions/MoveInstruction.py: 1 added line, 2 removed lines. Original line number Diff line number Diff line import shutil from dataclasses import dataclass from pathlib import Path Loading @@ -19,4 +18,4 @@ class MoveInstruction(Instruction): if self.new_path.exists(): raise FileExistsError("New path already exists, not moving anything") shutil.move(self.old_path, self.new_path) self.old_path.rename(self.new_path) Loading
karaokatalog/instructions/MoveInstruction.py +1 −2 Changes for karaokatalog/instructions/MoveInstruction.py: 1 added line, 2 removed lines. Original line number Diff line number Diff line import shutil from dataclasses import dataclass from pathlib import Path Loading @@ -19,4 +18,4 @@ class MoveInstruction(Instruction): if self.new_path.exists(): raise FileExistsError("New path already exists, not moving anything") shutil.move(self.old_path, self.new_path) self.old_path.rename(self.new_path)