Verified Commit e17d4054 authored by Jakob Moser's avatar Jakob Moser
Browse files

Create parent directories if necessary

parent c47c4817
Loading
Loading
Loading
Loading
+1 −0
Changes for karaokatalog/instructions/MoveInstruction.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -18,4 +18,5 @@ class MoveInstruction(Instruction):
        if self.new_path.exists():
            raise FileExistsError("New path already exists, not moving anything")

        self.new_path.parent.mkdir(exist_ok=True, parents=True)
        self.old_path.rename(self.new_path)