From 254e062e52d2fc919b3a5301a81fd143897a83b8 Mon Sep 17 00:00:00 2001 From: Joshua Grall Date: Fri, 10 Jan 2020 14:00:27 -0600 Subject: [PATCH] Fixing path --- Modules/ContentLibrary/ContentLibrary.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/ContentLibrary/ContentLibrary.psm1 b/Modules/ContentLibrary/ContentLibrary.psm1 index 25e6a58..3443897 100644 --- a/Modules/ContentLibrary/ContentLibrary.psm1 +++ b/Modules/ContentLibrary/ContentLibrary.psm1 @@ -199,7 +199,7 @@ Function Get-ContentLibraryItemFiles { foreach($file in $files) { if($contentLibraryItemStorageService.get($itemId, $($file.name)).storage_backing.type -eq "DATASTORE"){ - $filepath = $contentLibraryItemStorageService.get($itemId, $($file.name)).storage_uris.AbsolutePath.split("/")[5..7] -join "/" + $filepath = $contentLibraryItemStorageService.get($itemId, $($file.name)).storage_uris.segments -notmatch '(^/$|^vmfs$*|^volumes$*|vsan:.*)' -join '' $fullfilepath = "[$($datastore.name)] $filepath" } else{