handle new share list output

This commit is contained in:
Robin Appelman 2018-03-27 17:25:21 +02:00
commit 89f47cfdf2
4 changed files with 27 additions and 6 deletions

View file

@ -17,10 +17,10 @@ class System {
private $stdbuf;
public static function getFD($num) {
$folders = array(
$folders = [
'/proc/self/fd',
'/dev/fd'
);
];
foreach ($folders as $folder) {
if (file_exists($folder)) {
return $folder . '/' . $num;