From c11c6fed9536199c466f47fd157d778e30709379 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 27 Jul 2003 21:26:51 +0000 Subject: [PATCH] //Added some debug (commented in production) --- backup/lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backup/lib.php b/backup/lib.php index fcff668887..1c6d8ad00c 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -252,6 +252,7 @@ function backup_copy_file ($from_file,$to_file) { if (is_file($from_file)) { + //echo "
Copying ".$from_file." to ".$to_file; //Debug $perms=fileperms($from_file); return copy($from_file,$to_file) && chmod($to_file,$perms); } @@ -259,6 +260,7 @@ return backup_copy_dir($from_file,$to_file); } else{ + //echo "
Error: not file or dir ".$from_file; //Debug return false; } } @@ -268,6 +270,7 @@ global $CFG; if (!is_dir($to_file)) { + //echo "
Creating ".$to_file; //Debug mkdir($to_file,$CFG->directorypermissions); } $dir = opendir($from_file); -- 2.39.5