From 3586f22ad73e047b4e962952be796baece235708 Mon Sep 17 00:00:00 2001 From: Elena.Budnik <ebudnik@irap.omp.eu> Date: Wed, 27 Feb 2019 12:55:09 +0100 Subject: [PATCH] missing line --- src/DDSERVICES/SOAP/DDserverWeb.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DDSERVICES/SOAP/DDserverWeb.php b/src/DDSERVICES/SOAP/DDserverWeb.php index f768fb5..e5d5d85 100644 --- a/src/DDSERVICES/SOAP/DDserverWeb.php +++ b/src/DDSERVICES/SOAP/DDserverWeb.php @@ -348,7 +348,9 @@ if ($VI->item(0)->nodeValue != NULL) { - $location = $VI->item(0)->parentNode->getElementsByTagName("LOCATION")->item(0)->nodeValue; + $location = $VI->item(0)->parentNode->getElementsByTagName("LOCATION")->item(0)->nodeValue; + + $find = 'find '.$location.'*.nc.gz -type f -printf \'%T@ %p\n\' | sort -n | tail -1 | cut -f2- -d" "'; $lastFile = exec($find); if (!file_exists($lastFile)) exit('NO SUCH FILE '.$lastFile); -- libgit2 0.21.2