I have a dir which contains many files and the webGUI stays empty:
This happens because of /usr/local/emhttp/plugins/dynamix/include/Browse.php which executes the following:
exec("shopt -s dotglob; stat -L -c'%F|%n|%s|%Y' $all 2>/dev/null",$file);
I executed it manually and it returns an error:
stat -L -c'%F|%n|%s|%Y' /usr/local/emhttp/mnt/cache/Music/randomfiles/* -bash: /usr/bin/stat: Argument list too long
Maybe it should be changed as follows:
exec("shopt -s dotglob; stat -L -c'%F|%n|%s|%Y' $all 2>/dev/null",$file,$return_var); ... echo "<thead><tr><th>Type</th><th class='sorter-text'>Name</th><th>Size</th><th>Last Modified</th><th>Location</th></tr></thead>"; switch ($return_var) { case 0: break; case 1: echo "<thead><tr><th></th><th colspan='4'><strong class='red-text'>This directory is empty.</strong></th></tr></thead>"; break; case 126: echo "<thead><tr><th></th><th colspan='4'><strong class='red-text'>This directory contains too many files!</strong></th></tr></thead>"; break; default: echo "<thead><tr><th></th><th colspan='4'><strong class='red-text'>Unknown error " . intval($return_var) . "</strong></th></tr></thead>"; }
Outputs:
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.