From 68a61f731f78d8d09a3a3dcde1cac2a33d3ce02a Mon Sep 17 00:00:00 2001 From: Peter Bull Date: Fri, 2 Aug 2024 10:16:37 -0700 Subject: [PATCH] windows agnostic --- tests/mock_clients/mock_adls_gen2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mock_clients/mock_adls_gen2.py b/tests/mock_clients/mock_adls_gen2.py index 1d9c10a2..f1940e50 100644 --- a/tests/mock_clients/mock_adls_gen2.py +++ b/tests/mock_clients/mock_adls_gen2.py @@ -1,5 +1,5 @@ from datetime import datetime -from pathlib import Path +from pathlib import Path, PurePosixPath from shutil import rmtree from azure.core.exceptions import ResourceNotFoundError from azure.storage.filedatalake import FileProperties @@ -41,7 +41,7 @@ def get_directory_client(self, key): def get_paths(self, path, recursive=False): yield from ( MockedFileClient( - f.relative_to(self.root), self.root, self.metadata_cache + PurePosixPath(f.relative_to(self.root)), self.root, self.metadata_cache ).get_file_properties() for f in (self.root / path).glob("**/*" if recursive else "*") )