diff --git a/PFERD/crawl/crawler.py b/PFERD/crawl/crawler.py index 8bd29ad..420d088 100644 --- a/PFERD/crawl/crawler.py +++ b/PFERD/crawl/crawler.py @@ -242,7 +242,6 @@ class Crawler(ABC): config.default_section.working_dir() / section.output_dir(name), section.redownload(), section.on_conflict(), - section.windows_paths(), ) @property diff --git a/PFERD/output_dir.py b/PFERD/output_dir.py index 5f65316..fa7babe 100644 --- a/PFERD/output_dir.py +++ b/PFERD/output_dir.py @@ -142,10 +142,9 @@ class OutputDirectory: root: Path, redownload: Redownload, on_conflict: OnConflict, - windows_paths: bool, ): - if windows_paths: - # Windows limits the path length to 260 for some historical reason + if os.name == "nt": + # Windows limits the path length to 260 for some historical reason. # If you want longer paths, you will have to add the "\\?\" prefix # in front of your path. See: # https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation