@@ -57,7 +57,6 @@ public class GetAzureStorageBlobCommand : StorageCloudBlobCmdletBase
57
57
/// </summary>
58
58
private const string SingleBlobVersionIDParameterSet = "SingleBlobVersionID" ;
59
59
60
- [ CmdletParameterBreakingChange ( "Blob" , ChangeDescription = "Leading and trailing slashes will not be trimmed in a future release." ) ]
61
60
[ Parameter ( Position = 0 , HelpMessage = "Blob name" , ParameterSetName = NameParameterSet ) ]
62
61
[ Parameter ( Position = 0 , Mandatory = true , HelpMessage = "Blob name" , ParameterSetName = SingleBlobSnapshotTimeParameterSet ) ]
63
62
[ Parameter ( Position = 0 , Mandatory = true , HelpMessage = "Blob name" , ParameterSetName = SingleBlobVersionIDParameterSet ) ]
@@ -235,7 +234,7 @@ internal async Task ListBlobsByName(long taskId, IStorageBlobManagement localCha
235
234
BlobBaseClient blobClient = null ;
236
235
if ( UseTrack2Sdk ( ) ) // User Track2 SDK
237
236
{
238
- blobClient = Util . GetTrack2BlobClient ( track2container , blobName , localChannel . StorageContext , this . VersionId , false , this . SnapshotTime is null ? null : this . SnapshotTime . Value . ToUniversalTime ( ) . ToString ( "o" ) . Replace ( "+00:00" , "Z" ) , ClientOptions ) ;
237
+ blobClient = Util . GetTrack2BlobClient ( track2container , blobName , localChannel . StorageContext , this . VersionId , false , this . SnapshotTime is null ? null : this . SnapshotTime . Value . ToUniversalTime ( ) . ToString ( "o" ) . Replace ( "+00:00" , "Z" ) , ClientOptions , shouldTrimSlash : false ) ;
239
238
global ::Azure . Storage . Blobs . Models . BlobProperties blobProperties ;
240
239
try
241
240
{
@@ -245,7 +244,7 @@ internal async Task ListBlobsByName(long taskId, IStorageBlobManagement localCha
245
244
{
246
245
throw new ResourceNotFoundException ( String . Format ( Resources . BlobNotFound , blobName , containerName ) ) ;
247
246
}
248
- blobClient = Util . GetTrack2BlobClient ( track2container , blobName , localChannel . StorageContext , this . VersionId , blobProperties . IsLatestVersion , this . SnapshotTime is null ? null : this . SnapshotTime . Value . ToUniversalTime ( ) . ToString ( "o" ) . Replace ( "+00:00" , "Z" ) , ClientOptions , blobProperties . BlobType ) ;
247
+ blobClient = Util . GetTrack2BlobClient ( track2container , blobName , localChannel . StorageContext , this . VersionId , blobProperties . IsLatestVersion , this . SnapshotTime is null ? null : this . SnapshotTime . Value . ToUniversalTime ( ) . ToString ( "o" ) . Replace ( "+00:00" , "Z" ) , ClientOptions , blobProperties . BlobType , shouldTrimSlash : false ) ;
249
248
250
249
AzureStorageBlob outputBlob = new AzureStorageBlob ( blobClient , localChannel . StorageContext , blobProperties , ClientOptions ) ;
251
250
if ( this . IncludeTag . IsPresent )
0 commit comments