This commit is contained in:
Jesse Bannon 2024-05-10 14:20:28 -07:00
parent b420f502ee
commit b1bb88e0f2

View file

@ -1,4 +1,5 @@
import os import os
import posixpath
from typing import Any from typing import Any
from typing import Dict from typing import Dict
from typing import Optional from typing import Optional
@ -148,8 +149,8 @@ class ConfigOptions(StrictDictValidator):
The directory to temporarily store downloaded files before moving them into their final The directory to temporarily store downloaded files before moving them into their final
directory. Defaults to .ytdl-sub-working-directory directory. Defaults to .ytdl-sub-working-directory
""" """
# Expands tildas to actual paths # Expands tildas to actual paths, use native os sep
return os.path.expanduser(self._working_directory.value) return os.path.expanduser(self._working_directory.value.replace(posixpath.sep, os.sep))
@property @property
def umask(self) -> Optional[str]: def umask(self) -> Optional[str]: