mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Fix check for target dir presence
This commit is contained in:
@@ -83,7 +83,7 @@ class RecordCommand(Command): # pylint: disable=too-many-instance-attributes
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
else:
|
else:
|
||||||
dir_path = os.path.dirname(self.filename)
|
dir_path = os.path.dirname(os.path.abspath(self.filename))
|
||||||
|
|
||||||
if not os.path.exists(dir_path):
|
if not os.path.exists(dir_path):
|
||||||
self.print_error(f"directory {dir_path} doesn't exist")
|
self.print_error(f"directory {dir_path} doesn't exist")
|
||||||
|
|||||||
Reference in New Issue
Block a user