Commit 3586f22ad73e047b4e962952be796baece235708
1 parent
954c1dea
Exists in
master
and in
9 other branches
missing line
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/DDSERVICES/SOAP/DDserverWeb.php
... | ... | @@ -348,7 +348,9 @@ |
348 | 348 | |
349 | 349 | if ($VI->item(0)->nodeValue != NULL) |
350 | 350 | { |
351 | - $location = $VI->item(0)->parentNode->getElementsByTagName("LOCATION")->item(0)->nodeValue; | |
351 | + $location = $VI->item(0)->parentNode->getElementsByTagName("LOCATION")->item(0)->nodeValue; | |
352 | + | |
353 | + $find = 'find '.$location.'*.nc.gz -type f -printf \'%T@ %p\n\' | sort -n | tail -1 | cut -f2- -d" "'; | |
352 | 354 | $lastFile = exec($find); |
353 | 355 | if (!file_exists($lastFile)) |
354 | 356 | exit('NO SUCH FILE '.$lastFile); |
... | ... |