src/Viserio/Component/Filesystem/Filesystem.php
public function getVisibility(string $path): string
    {
        \clearstatcache(false, $path);
        $permissions = \octdec(\mb_substr(\sprintf('%o', \fileperms($path)), -4));

        return ($permissions & 0044) ?
            FilesystemContract::VISIBILITY_PUBLIC :
            FilesystemContract::VISIBILITY_PRIVATE;
    }
public function getVisibility(string $path): string
    {
        \clearstatcache(false, $path);
        $permissions = \octdec(\mb_substr(\sprintf('%o', \fileperms($path)), -4));

        return ($permissions & 0044) ?
            FilesystemContract::VISIBILITY_PUBLIC :
            FilesystemContract::VISIBILITY_PRIVATE;
    }
{@inheritdoc}