Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-09-30 18:27:55 +0300
committernachoparker <nacho@ownyourbits.com>2017-10-04 15:41:47 +0300
commit6e129da180c7118b780052b75f11d1a9ebeae931 (patch)
treed89d35dfc8b68b0e0031c74dfc6cfc889984b644 /ncp-web/ncp-output.php
parent99126b6144e977c3fc5289135623d6d480166a35 (diff)
ncp-web: small fixesv0.31.8
Diffstat (limited to 'ncp-web/ncp-output.php')
-rw-r--r--ncp-web/ncp-output.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/ncp-web/ncp-output.php b/ncp-web/ncp-output.php
index 750c71c6..6450250a 100644
--- a/ncp-web/ncp-output.php
+++ b/ncp-web/ncp-output.php
@@ -48,6 +48,12 @@ function follow($file)
$size = 0;
while (true)
{
+ if ( !file_exists($file) )
+ {
+ usleep(200000); // 0.2s
+ continue;
+ }
+
clearstatcache();
$currentSize = filesize($file);
if ($size == $currentSize)