mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
//Added some debug (commented in production)
This commit is contained in:
parent
706be21465
commit
c11c6fed95
@ -252,6 +252,7 @@
|
||||
|
||||
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);
|
||||
}
|
||||
@ -259,6 +260,7 @@
|
||||
return backup_copy_dir($from_file,$to_file);
|
||||
}
|
||||
else{
|
||||
//echo "<br>Error: not file or dir ".$from_file; //Debug
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -268,6 +270,7 @@
|
||||
global $CFG;
|
||||
|
||||
if (!is_dir($to_file)) {
|
||||
//echo "<br>Creating ".$to_file; //Debug
|
||||
mkdir($to_file,$CFG->directorypermissions);
|
||||
}
|
||||
$dir = opendir($from_file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user