404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.106.176: ~ $
<?php

declare(strict_types=1);

namespace League\Flysystem;

use ArrayIterator;
use Generator;
use IteratorAggregate;
use Traversable;

/**
 * @template T
 */
class DirectoryListing implements IteratorAggregate
{
    /**
     * @param iterable<T> $listing
     */
    public function __construct(private iterable $listing)
    {
    }

    /**
     * @param callable(T): bool $filter
     * @return DirectoryListing<T>
     */
    public function filter(callable $filter): DirectoryListing
    {
        $generator = (static function (iterable $listing) use ($filter): Generator {
            foreach ($listing as $item) {
                if ($filter($item)) {
                    yield $item;
                }
            }
        })($this->listing);

        return new DirectoryListing($generator);
    }

    /**
     * @template R
     * @param callable(T): R $mapper
     * @return DirectoryListing<R>
     */
    public function map(callable $mapper): DirectoryListing
    {
        $generator = (static function (iterable $listing) use ($mapper): Generator {
            foreach ($listing as $item) {
                yield $mapper($item);
            }
        })($this->listing);

        return new DirectoryListing($generator);
    }

    /**
     * @return DirectoryListing<T>
     */
    public function sortByPath(): DirectoryListing
    {
        $listing = $this->toArray();

        usort($listing, function (StorageAttributes $a, StorageAttributes $b) {
            return $a->path() <=> $b->path();
        });

        return new DirectoryListing($listing);
    }

    /**
     * @return Traversable<T>
     */
    public function getIterator(): Traversable
    {
        return $this->listing instanceof Traversable
            ? $this->listing
            : new ArrayIterator($this->listing);
    }

    /**
     * @return T[]
     */
    public function toArray(): array
    {
        return $this->listing instanceof Traversable
            ? iterator_to_array($this->listing, false)
            : (array) $this->listing;
    }
}

Filemanager

Name Type Size Permission Actions
Local Folder 0755
UnixVisibility Folder 0755
UrlGeneration Folder 0755
CalculateChecksumFromStream.php File 793 B 0644
ChecksumAlgoIsNotSupported.php File 169 B 0644
ChecksumProvider.php File 291 B 0644
Config.php File 757 B 0644
CorruptedPathDetected.php File 316 B 0644
DirectoryAttributes.php File 2.02 KB 0644
DirectoryListing.php File 2.01 KB 0644
FileAttributes.php File 2.5 KB 0644
Filesystem.php File 7.55 KB 0644
FilesystemAdapter.php File 2.72 KB 0644
FilesystemException.php File 130 B 0644
FilesystemOperationFailed.php File 954 B 0644
FilesystemOperator.php File 138 B 0644
FilesystemReader.php File 2.12 KB 0644
FilesystemWriter.php File 1.41 KB 0644
InvalidStreamProvided.php File 225 B 0644
InvalidVisibilityProvided.php File 553 B 0644
MountManager.php File 13.62 KB 0644
PathNormalizer.php File 148 B 0644
PathPrefixer.php File 1.13 KB 0644
PathTraversalDetected.php File 482 B 0644
PortableVisibilityGuard.php File 511 B 0644
ProxyArrayAccessToProperties.php File 1.2 KB 0644
StorageAttributes.php File 1.01 KB 0644
SymbolicLinkEncountered.php File 531 B 0644
UnableToCheckDirectoryExistence.php File 257 B 0644
UnableToCheckExistence.php File 677 B 0644
UnableToCheckFileExistence.php File 247 B 0644
UnableToCopyFile.php File 964 B 0644
UnableToCreateDirectory.php File 1.33 KB 0644
UnableToDeleteDirectory.php File 973 B 0644
UnableToDeleteFile.php File 922 B 0644
UnableToGeneratePublicUrl.php File 754 B 0644
UnableToGenerateTemporaryUrl.php File 760 B 0644
UnableToListContents.php File 650 B 0644
UnableToMountFilesystem.php File 915 B 0644
UnableToMoveFile.php File 1020 B 0644
UnableToProvideChecksum.php File 387 B 0644
UnableToReadFile.php File 924 B 0644
UnableToResolveFilesystemMount.php File 723 B 0644
UnableToRetrieveMetadata.php File 1.97 KB 0644
UnableToSetVisibility.php File 981 B 0644
UnableToWriteFile.php File 919 B 0644
UnreadableFileEncountered.php File 556 B 0644
Visibility.php File 163 B 0644
WhitespacePathNormalizer.php File 1.13 KB 0644