Update readFiles method in SapFileController to change directory path and improve debug information

This commit is contained in:
dhanabalan
2025-09-26 10:06:29 +05:30
parent 831c88f0fd
commit 7406f4c97e

View File

@@ -30,7 +30,7 @@ class SapFileController extends Controller
public function readFiles() public function readFiles()
{ {
$path = "/var/www/"; $path = "/LaserPRD";
$isDir = is_dir($path); $isDir = is_dir($path);
$isReadable = is_readable($path); $isReadable = is_readable($path);
@@ -43,7 +43,6 @@ class SapFileController extends Controller
'path_checked' => $path, 'path_checked' => $path,
'is_dir' => $isDir, 'is_dir' => $isDir,
'is_readable' => $isReadable, 'is_readable' => $isReadable,
'php_user' => exec('whoami'),
] ]
], 500); ], 500);
} }