@@ -211,7 +211,7 @@ internal AzureFileSystem(string containerName, string rootUrl, string connection
211
211
/// </summary>
212
212
public string ApplicationVirtualPath { get ; internal set ; } = HttpRuntime . AppDomainAppVirtualPath ;
213
213
214
- public bool CanAddPhysical => throw new NotImplementedException ( ) ;
214
+ public bool CanAddPhysical => false ;
215
215
216
216
/// <summary>
217
217
/// Returns a singleton instance of the <see cref="AzureFileSystem"/> class.
@@ -344,7 +344,9 @@ public void AddFile(string path, Stream stream)
344
344
/// <inheritdoc/>
345
345
public void AddFile ( string path , string physicalPath , bool overrideIfExists = true , bool copy = false )
346
346
{
347
- //Valid as the property 'CanAddPhysical' is not implemented either
347
+ var fullPath = GetFullPath ( path ) ;
348
+ Current . Logger . Debug < AzureBlobFileSystem > ( $ "NotImplemented! AddFile(path, physicalPath, overrideIfExists, copy) method executed with path:{ path } , { physicalPath } , { overrideIfExists } , { copy } - fullPath: { fullPath } ") ;
349
+
348
350
throw new NotImplementedException ( ) ;
349
351
}
350
352
@@ -543,23 +545,23 @@ public IEnumerable<string> GetFiles(string path, string filter)
543
545
}
544
546
545
547
return blobList . OfType < CloudBlockBlob > ( ) . Select ( cd =>
546
- {
547
- string url = cd . Uri . AbsoluteUri ;
548
+ {
549
+ string url = cd . Uri . AbsoluteUri ;
548
550
549
- if ( filter . Equals ( "*.*" , StringComparison . InvariantCultureIgnoreCase ) )
550
- {
551
- return url . Substring ( this . rootContainerUrl . Length ) ;
552
- }
551
+ if ( filter . Equals ( "*.*" , StringComparison . InvariantCultureIgnoreCase ) )
552
+ {
553
+ return url . Substring ( this . rootContainerUrl . Length ) ;
554
+ }
553
555
554
- // Filter by name.
555
- filter = filter . TrimStart ( '*' ) ;
556
- if ( url . IndexOf ( filter , StringComparison . InvariantCultureIgnoreCase ) > - 1 )
557
- {
558
- return url . Substring ( this . rootContainerUrl . Length ) ;
559
- }
556
+ // Filter by name.
557
+ filter = filter . TrimStart ( '*' ) ;
558
+ if ( url . IndexOf ( filter , StringComparison . InvariantCultureIgnoreCase ) > - 1 )
559
+ {
560
+ return url . Substring ( this . rootContainerUrl . Length ) ;
561
+ }
560
562
561
- return null ;
562
- } ) . Where ( x => x != null ) ;
563
+ return null ;
564
+ } ) . Where ( x => x != null ) ;
563
565
}
564
566
565
567
/// <summary>
@@ -810,7 +812,7 @@ private CloudBlockBlob GetBlockBlobReference(string path)
810
812
// blob doesn't exist yet
811
813
var blobReference = this . cloudBlobContainer . GetBlockBlobReference ( blobPath ) ;
812
814
return blobReference ;
813
-
815
+
814
816
}
815
817
catch ( StorageException ex )
816
818
{
0 commit comments