@@ -123,15 +123,15 @@ public static async Task<bool> UnregisterSyncRootAsync(string syncRootPath, stri
123123
124124 if ( res && ! string . IsNullOrWhiteSpace ( dataPath ) )
125125 {
126- log . Debug ( $ "Deleteing data folder for { syncRootPath } ") ;
126+ log . Debug ( $ "\n Deleting data folder for { syncRootPath } ") ;
127127 try
128128 {
129129 Directory . Delete ( dataPath , true ) ;
130130 }
131131 catch ( Exception ex )
132132 {
133133 res = false ;
134- log . Error ( $ "Failed to delete data folder { syncRootPath } { dataPath } ", ex ) ;
134+ log . Error ( $ "\n Failed to delete data folder { syncRootPath } { dataPath } ", ex ) ;
135135 }
136136 }
137137
@@ -149,25 +149,25 @@ private static async Task<bool> UnregisterSyncRootAsync(string syncRootPath, ILo
149149 StorageProviderSyncRootInfo syncRootInfo = null ;
150150 try
151151 {
152- logger . Debug ( $ "Getting sync root info { syncRootPath } ") ;
152+ logger . Debug ( $ "\n Getting sync root info { syncRootPath } ") ;
153153 syncRootInfo = StorageProviderSyncRootManager . GetSyncRootInformationForFolder ( storageFolder ) ;
154154 }
155155 catch ( Exception ex )
156156 {
157- logger . Error ( $ "Sync root is not registered { syncRootPath } ", ex ) ;
157+ logger . Error ( $ "\n Sync root is not registered { syncRootPath } ", ex ) ;
158158 }
159159
160160 // Unregister sync root.
161161 if ( syncRootInfo != null )
162162 {
163163 try
164- {
165- logger . Debug ( $ "Unregistering sync root { syncRootPath } { syncRootInfo . Id } ") ;
164+ {
165+ logger . Debug ( $ "\n Unregistering sync root { syncRootPath } { syncRootInfo . Id } ") ;
166166 StorageProviderSyncRootManager . Unregister ( syncRootInfo . Id ) ;
167167 }
168168 catch ( Exception ex )
169169 {
170- logger . Error ( $ "Failed to unregister sync root { syncRootPath } { syncRootInfo . Id } ", ex ) ;
170+ logger . Error ( $ "\n Failed to unregister sync root { syncRootPath } { syncRootInfo . Id } ", ex ) ;
171171 // IMPORTANT!
172172 // If Unregister() failed, deleting items on the client may trigger deleting
173173 // items in the remote storage if the Engine did not stop or if started again.
@@ -178,22 +178,22 @@ private static async Task<bool> UnregisterSyncRootAsync(string syncRootPath, ILo
178178
179179 // Remore the read-only arrtibute. Otherwise delete fails.
180180 var allItems = Directory . EnumerateFileSystemEntries ( syncRootPath , "*" , SearchOption . AllDirectories ) ;
181- foreach ( var path in allItems )
181+ foreach ( var path in allItems )
182182 {
183183 try
184184 {
185185 new FileInfo ( path ) . IsReadOnly = false ;
186186 }
187187 catch ( Exception ex )
188188 {
189- logger . Error ( $ "Failed to remove read-only attribute for { path } ", ex ) ;
189+ logger . Error ( $ "\n Failed to remove read-only attribute for { path } ", ex ) ;
190190 }
191191 }
192192
193193 // Delete sync root folder.
194194 try
195195 {
196- logger . Debug ( $ "Deleteing sync root folder { syncRootPath } ") ;
196+ logger . Debug ( $ "\n Deleting sync root folder { syncRootPath } ") ;
197197 Directory . Delete ( syncRootPath , true ) ;
198198 res = true ;
199199 }
@@ -217,7 +217,7 @@ public virtual async Task<bool> UnregisterAllSyncRootsAsync(string providerId, b
217217 {
218218 bool res = true ;
219219 var syncRoots = StorageProviderSyncRootManager . GetCurrentSyncRoots ( ) ;
220- foreach ( var syncRoot in syncRoots )
220+ foreach ( var syncRoot in syncRoots )
221221 {
222222 string storedProviderId = syncRoot . Id ? . Split ( '!' ) ? . FirstOrDefault ( ) ;
223223 if ( storedProviderId . Equals ( providerId ) )
@@ -333,14 +333,14 @@ private static async Task<StorageProviderSyncRootInfo> RegisterAsync(string sync
333333 // Adds columns to Windows File Manager.
334334 // Show/hide columns in the "More..." context menu on the columns header in Windows Explorer.
335335 var proDefinitions = storageInfo . StorageProviderItemPropertyDefinitions ;
336- if ( customColumns != null )
336+ if ( customColumns != null )
337337 {
338338 foreach ( var column in customColumns )
339339 {
340340 proDefinitions . Add ( new StorageProviderItemPropertyDefinition { DisplayNameResource = column . Value , Id = column . Key } ) ;
341341 }
342342 }
343-
343+
344344 ValidateStorageProviderSyncRootInfo ( storageInfo ) ;
345345
346346 StorageProviderSyncRootManager . Register ( storageInfo ) ;
@@ -469,7 +469,7 @@ private static StorageProviderSyncRootInfo GetSyncRootInfo(Uri uri)
469469 {
470470 return syncRoot ;
471471 }
472- }
472+ }
473473 }
474474
475475 return null ;
@@ -510,7 +510,7 @@ public static async Task<IEnumerable<StorageProviderSyncRootInfo>> GetMountedSyn
510510 string storedUri = syncRoot . GetRemoteStoragePath ( ) ;
511511 if ( ! System . Uri . TryCreate ( storedUri , UriKind . Absolute , out System . Uri _ ) )
512512 {
513- log . Error ( $ "Can not parse URI for { syncRoot . DisplayNameResource } : { storedUri } ") ;
513+ log . Error ( $ "\n Can not parse URI for { syncRoot . DisplayNameResource } : { storedUri } ") ;
514514 continue ;
515515 }
516516
0 commit comments