Skip to content

Commit

Permalink
windows agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbull committed Aug 2, 2024
1 parent fa3d536 commit 68a61f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/mock_clients/mock_adls_gen2.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 "*")
)
Expand Down

0 comments on commit 68a61f7

Please sign in to comment.