We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filesystem::checksum
pathNormalizer->normalizePath
I wanted to implement my own PathNormalizer, but I ran into issues when retrieving a checksum.
I made my own PathNormalizer. It looks like it's correctly working with filesystem->has and filesystem->write, but not filesystem->checksum.
filesystem->has
filesystem->write
filesystem->checksum
I think
flysystem/src/Filesystem.php
Line 217 in 0adc0d9
$path
$this->pathNormalizer->normalizePath($path)
<?php class SillyPathNormalizer implements PathNormalizer { public function normalizePath(string $path): string { return "silly"; } } $filesystem = new Filesystem( adapter: new LocalFilesystemAdapter('data/test'), pathNormalizer: new SillyPathNormalizer() ); $path = 'very'; $filesystem->write($path, 'goose'); $contents = $filesystem->read($path); assert($contents === 'goose'); // Passes $checksum = $filesystem->checksum($path); // Throws an exception
The text was updated successfully, but these errors were encountered:
e58b8a7
No branches or pull requests
Bug Report
I wanted to implement my own PathNormalizer, but I ran into issues when retrieving a checksum.
Summary
I made my own PathNormalizer. It looks like it's correctly working with
filesystem->has
andfilesystem->write
, but notfilesystem->checksum
.I think
flysystem/src/Filesystem.php
Line 217 in 0adc0d9
$path
with$this->pathNormalizer->normalizePath($path)
?How to reproduce
The text was updated successfully, but these errors were encountered: