35 $this->logger =
$GLOBALS[
'DIC']->logger()->cal();
76 $this->logger->info(
'Called copy files job');
78 $this->target_directory = $definition->getTempDir();
86 $this->
copyFiles($targetdir, $definition);
91 $this->logger->debug(
'Returning new tempdirectory: ' . $targetdir);
94 $out->setValue($targetdir);
109 $this->logger->info(
'New temp directory: ' . $tmpdir);
119 $this->logger->info(
'New final directory: ' . $final_dir);
146 if ($is_empty_folder) {
156 $this->logger->debug(
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
Description of class class.
getCopyDefinitions()
Get copy definitions.
Description of class class.
run(array $input, Observer $observer)
run the job
createUniqueTempDirectory()
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...
copyFiles($tmpdir, ilCopyDefinition $definition)
Copy files.
createTargetDirectory($a_tmpdir)
__construct()
Constructor.
static ilTempnam($a_temp_path=null)
Returns a unique and non existing Path for e temporary file or directory.
static makeDirParents($a_dir)
Create a new directory and all parent directories.