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: CalculateChecksumFromStream.php
<?php declare(strict_types=1); namespace League\Flysystem; use function hash_final; use function hash_init; use function hash_update_stream; trait CalculateChecksumFromStream { private function calculateChecksumFromStream(string $path, Config $config): string { try { $stream = $this->readStream($path); $algo = (string) $config->get('checksum_algo', 'md5'); $context = hash_init($algo); hash_update_stream($context, $stream); return hash_final($context); } catch (FilesystemException $exception) { throw new UnableToProvideChecksum($exception->getMessage(), $path, $exception); } } /** * @return resource */ abstract public function readStream(string $path); }
Upload File
Create Folder