Skip to content

Commit

Permalink
Fix issue #554
Browse files Browse the repository at this point in the history
  • Loading branch information
Bdegraaf1234 committed Apr 4, 2024
1 parent d422954 commit a663506
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -24,6 +24,7 @@ class AzureSourceStorage(

private fun blobClient(path: Path) = blobContainerClient.getBlobClient(path.toKey())

///
override suspend fun list(path: Path, maxKeys: Int?): List<SimpleFileStatus> =
withContext(Dispatchers.IO) {
var iterable: Iterable<BlobItem> = blobContainerClient.listBlobsByHierarchy("$path/")
Expand All @@ -34,7 +35,7 @@ class AzureSourceStorage(
SimpleFileStatus(
Paths.get(it.name),
it.isPrefix ?: false,
it.properties?.lastModified?.toInstant(),
if (it.isPrefix) null else it.properties?.lastModified?.toInstant(),
)
}
}
Expand Down

0 comments on commit a663506

Please sign in to comment.