]> git.mjollnir.org Git - moodle.git/commitdiff
//Added some debug (commented in production)
authorstronk7 <stronk7>
Sun, 27 Jul 2003 21:26:51 +0000 (21:26 +0000)
committerstronk7 <stronk7>
Sun, 27 Jul 2003 21:26:51 +0000 (21:26 +0000)
backup/lib.php

index fcff668887eb63a9d8d150b9e97545927d0248c0..1c6d8ad00c612fa8b138f14ad84ade1baf593ac2 100644 (file)
   
     function backup_copy_file ($from_file,$to_file) {
         if (is_file($from_file)) {
+            //echo "<br>Copying ".$from_file." to ".$to_file;              //Debug
             $perms=fileperms($from_file);
             return copy($from_file,$to_file) && chmod($to_file,$perms);
         }
             return backup_copy_dir($from_file,$to_file);
         }
         else{
+            //echo "<br>Error: not file or dir ".$from_file;               //Debug
             return false;
         }
     }
         global $CFG;
 
         if (!is_dir($to_file)) {
+            //echo "<br>Creating ".$to_file;                                //Debug
             mkdir($to_file,$CFG->directorypermissions);
         }
         $dir = opendir($from_file);