X7ROOT File Manager
Current Path:
/opt/cpanel/ea-wappspector/vendor/league/flysystem/src
opt
/
cpanel
/
ea-wappspector
/
vendor
/
league
/
flysystem
/
src
/
??
..
??
CalculateChecksumFromStream.php
(793 B)
??
ChecksumAlgoIsNotSupported.php
(169 B)
??
ChecksumProvider.php
(291 B)
??
Config.php
(1.39 KB)
??
CorruptedPathDetected.php
(316 B)
??
DecoratedAdapter.php
(2.36 KB)
??
DirectoryAttributes.php
(2.02 KB)
??
DirectoryListing.php
(2.03 KB)
??
FileAttributes.php
(2.5 KB)
??
Filesystem.php
(9.62 KB)
??
FilesystemAdapter.php
(2.72 KB)
??
FilesystemException.php
(130 B)
??
FilesystemOperationFailed.php
(954 B)
??
FilesystemOperator.php
(138 B)
??
FilesystemReader.php
(2.12 KB)
??
FilesystemWriter.php
(1.41 KB)
??
InvalidStreamProvided.php
(225 B)
??
InvalidVisibilityProvided.php
(553 B)
??
MountManager.php
(15 KB)
??
PathNormalizer.php
(148 B)
??
PathPrefixer.php
(1.13 KB)
??
PathTraversalDetected.php
(482 B)
??
PortableVisibilityGuard.php
(511 B)
??
ProxyArrayAccessToProperties.php
(1.2 KB)
??
ResolveIdenticalPathConflict.php
(198 B)
??
StorageAttributes.php
(1.01 KB)
??
SymbolicLinkEncountered.php
(531 B)
??
UnableToCheckDirectoryExistence.php
(257 B)
??
UnableToCheckExistence.php
(678 B)
??
UnableToCheckFileExistence.php
(247 B)
??
UnableToCopyFile.php
(1.49 KB)
??
UnableToCreateDirectory.php
(1.33 KB)
??
UnableToDeleteDirectory.php
(974 B)
??
UnableToDeleteFile.php
(923 B)
??
UnableToGeneratePublicUrl.php
(754 B)
??
UnableToGenerateTemporaryUrl.php
(760 B)
??
UnableToListContents.php
(650 B)
??
UnableToMountFilesystem.php
(915 B)
??
UnableToMoveFile.php
(1.6 KB)
??
UnableToProvideChecksum.php
(387 B)
??
UnableToReadFile.php
(925 B)
??
UnableToResolveFilesystemMount.php
(723 B)
??
UnableToRetrieveMetadata.php
(1.98 KB)
??
UnableToSetVisibility.php
(982 B)
??
UnableToWriteFile.php
(920 B)
??
UnixVisibility
??
UnreadableFileEncountered.php
(556 B)
??
UrlGeneration
??
Visibility.php
(163 B)
??
WhitespacePathNormalizer.php
(1.13 KB)
Editing: DirectoryListing.php
<?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; } }
Upload File
Create Folder