PHP 8.2.31
Preview: FileSystemFactory.php Size: 364 B
/opt/cpanel/ea-wappspector/src/FileSystemFactory.php

<?php

namespace Plesk\Wappspector;

use League\Flysystem\Filesystem;
use League\Flysystem\Local\LocalFilesystemAdapter;

class FileSystemFactory
{
    public function __invoke(string $path): Filesystem
    {
        $adapter = new LocalFilesystemAdapter($path, null, LOCK_EX, LocalFilesystemAdapter::SKIP_LINKS);

        return new Filesystem($adapter);
    }
}

Directory Contents

Dirs: 4 × Files: 4

Name Size Perms Modified Actions
Command DIR
- drwxr-xr-x 2026-05-15 07:01:45
Edit Download
Helper DIR
- drwxr-xr-x 2026-05-15 07:01:45
Edit Download
Matchers DIR
- drwxr-xr-x 2026-05-15 07:01:45
Edit Download
- drwxr-xr-x 2026-05-15 07:01:45
Edit Download
1.83 KB lrw-r--r-- 2026-05-14 15:20:35
Edit Download
384 B lrw-r--r-- 2026-05-14 15:20:35
Edit Download
364 B lrw-r--r-- 2026-05-14 15:20:35
Edit Download
1.01 KB lrw-r--r-- 2026-05-14 15:20:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).