File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Xamarin.Android.Build.Tasks/Tasks Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -54,26 +54,28 @@ public override bool RunTask ()
5454 continue ;
5555 }
5656 var files = System . IO . Directory . GetFiles ( absDir , "*" , SearchOption . AllDirectories ) ;
57- foreach ( string f in files )
57+ foreach ( string f in files ) {
5858 if ( ! knownFiles . Contains ( f ) ) {
5959 Log . LogDebugMessage ( "Deleting File {0}" , f ) ;
6060 var item = new TaskItem ( f . Replace ( absDir , root + Path . DirectorySeparatorChar ) ) ;
6161 removedFiles . Add ( item ) ;
6262 Microsoft . Android . Build . Tasks . Files . SetWriteable ( f ) ;
6363 File . Delete ( f ) ;
6464 }
65+ }
6566
6667 if ( RemoveDirectories ) {
6768 var knownDirs = new HashSet < string > ( knownFiles . Select ( d => Path . GetDirectoryName ( d ) ) ) ;
6869 var dirs = System . IO . Directory . GetDirectories ( absDir , "*" , SearchOption . AllDirectories ) ;
6970
70- foreach ( string d in dirs . OrderByDescending ( s => s . Length ) )
71+ foreach ( string d in dirs . OrderByDescending ( s => s . Length ) ) {
7172 if ( ! knownDirs . Contains ( d ) && IsDirectoryEmpty ( d ) ) {
7273 Log . LogDebugMessage ( "Deleting Directory {0}" , d ) ;
7374 removedDirectories . Add ( new TaskItem ( d ) ) ;
7475 Microsoft . Android . Build . Tasks . Files . SetDirectoryWriteable ( d ) ;
7576 System . IO . Directory . Delete ( d ) ;
7677 }
78+ }
7779 }
7880 }
7981
You can’t perform that action at this time.
0 commit comments