diff --git a/ajax/job_info_row.php b/ajax/job_info_row.php index 9a834bf..eb2a344 100644 --- a/ajax/job_info_row.php +++ b/ajax/job_info_row.php @@ -76,6 +76,16 @@ $sgerunning = $queueinfo[1]; } +// check the transition of a job from RUNNING to FINISHED in order to create and destroy directory +// to make owncloud sync its file index. +//if ($precstatus === JobStatus::$RUNNING && $status === JobStatus::$FINISHED) +//{ +// $newdir = OC_User::getHome(OC_User::getUser()).DIRECTORY_SEPARATOR."files".DIRECTORY_SEPARATOR.$job."_dummydir"; +// mkdir($newdir); +// sleep(3); +// rmdir($newdir); +//} + $showoutputjs = "javascript:show_output('" . $outputid . "', '" . $output_file . "')"; $killjs = OC_Helper::linkTo("neurocloud", "ajax/kill_job.php", array("study" => $file, "jobid" => $job, "redirect" => 1)); $refreshstatusjs = "javascript:refresh_job_status('" . $rowid . "','" . $file . "','" . $job . "','" . $outputid . "')"; @@ -171,4 +181,4 @@ \ No newline at end of file +?> diff --git a/appinfo/app.php b/appinfo/app.php index 2304e18..2841a8c 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -13,7 +13,7 @@ 'order' => 74, 'href' => OC_Helper::linkTo('neurocloud', 'index.php'), 'icon' => OC_Helper::imagePath('neurocloud', 'neurocloud.png'), - 'name' => 'Neurocloud')); + 'name' => 'Neurobox')); /** * register the classpath @@ -60,4 +60,4 @@ OC_FileProxy::register(new NC_FileProxy()); -?> \ No newline at end of file +?> diff --git a/index.php b/index.php index 0e789db..a07a078 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,9 @@