@@ -79,7 +79,6 @@ public static void Copy(string from, string to)
7979 }
8080 try
8181 {
82- Logger . Log ( "Copying " + from + " to " + to ) ;
8382 Stream file = GetOutputStream ( to ) ;
8483
8584 if ( file . CanWrite )
@@ -101,7 +100,6 @@ public static void Copy(DocumentFile source, string to)
101100 {
102101 try
103102 {
104- Logger . Log ( "Copying " + source . Name + " to " + to ) ;
105103 Stream file = System . IO . File . OpenWrite ( to ) ;
106104
107105 if ( file . CanWrite )
@@ -123,7 +121,6 @@ public static void Copy(string source, DocumentFile to)
123121 {
124122 try
125123 {
126- Logger . Log ( "Copying " + source + " to " + to ) ;
127124 Stream file = AndroidCore . context . ContentResolver . OpenOutputStream ( to . Uri ) ;
128125
129126 if ( file . CanWrite )
@@ -273,36 +270,29 @@ public static void DirectoryCopy(string sourceDirName, string destDirName)
273270
274271 public static void InternalDirectoryCopy ( string source , DocumentFile destDir )
275272 {
276- Logger . Log ( "Starting directory copy: string, DocumentFile" ) ;
277273 if ( destDir == null ) return ;
278- Logger . Log ( source + " -> " + destDir . Uri ) ;
279274
280275 // Delete all files and directories in destination directory
281276 foreach ( DocumentFile f in destDir . ListFiles ( ) )
282277 {
283278 f . Delete ( ) ;
284279 }
285280
286- Logger . Log ( "Cleared dest" ) ;
287281
288282 DirectoryInfo dir = new DirectoryInfo ( source ) ;
289- Logger . Log ( "Got dir info" ) ;
290283
291284 // Get the files in the directory and copy them to the new location.
292285 foreach ( FileInfo file in dir . GetFiles ( ) )
293286 {
294287 try
295288 {
296- Logger . Log ( "Copying " + file . Name ) ;
297289 Copy ( file . FullName , destDir . CreateFile ( "application/octet-stream" , file . Name ) ) ;
298290 }
299291 catch ( Exception e ) { Logger . Log ( "Error copying " + file . Name + ": " + e . ToString ( ) , LoggingType . Error ) ; }
300292 }
301293
302- Logger . Log ( "Copied all files" ) ;
303294 foreach ( DirectoryInfo subdir in dir . GetDirectories ( ) )
304295 {
305- Logger . Log ( "Continuing with subdir " + subdir . Name ) ;
306296 InternalDirectoryCopy ( subdir . FullName , destDir . CreateDirectory ( subdir . Name ) ) ;
307297 }
308298 }
0 commit comments