diff --git a/app/Models/File.php b/app/Models/File.php index 7948d4d..31c6c37 100644 --- a/app/Models/File.php +++ b/app/Models/File.php @@ -103,7 +103,7 @@ public static function parse(User $user, Server $server, string $path, string $s array_shift($lines); foreach ($lines as $line) { - if (preg_match('/^([drwx\-]+)\s+(\d+)\s+(\w+)\s+(\w+)\s+(\d+)\s+([\w\s:\-]+)\s+(.+)$/', $line, $matches)) { + if (preg_match('/^([drwx\-]+)\s+(\d+)\s+([\w\-]+)\s+([\w\-]+)\s+(\d+)\s+([\w\s:\-]+)\s+(.+)$/', $line, $matches)) { $type = match ($matches[1][0]) { '-' => 'file', 'd' => 'directory',