From 025c8d51a3f3c7dffc48a1283704601fe66f1fd1 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 24 Sep 2020 14:17:14 -0700 Subject: [PATCH] Use pathclass.Path.makedirs. --- voussoirkit/spinal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voussoirkit/spinal.py b/voussoirkit/spinal.py index 0c88b2f..be9d274 100644 --- a/voussoirkit/spinal.py +++ b/voussoirkit/spinal.py @@ -289,7 +289,7 @@ def copy_dir( raise DestinationIsDirectory(destination_file) if not dry_run: - os.makedirs(destination_file.parent.absolute_path, exist_ok=True) + destination_file.parent.makedirs(exist_ok=True) copied = copy_file( source_file, @@ -434,7 +434,7 @@ def copy_file( if callback_pre_copy(source, destination, dry_run=dry_run) is BAIL: return [destination, 0] - os.makedirs(destination.parent.absolute_path, exist_ok=True) + destination.parent.makedirs(exist_ok=True) def handlehelper(path, mode): try: