TaoLer/vendor/league/flysystem/src/UnreadableFileException.php
2020-01-01 13:17:19 +08:00

19 lines
345 B
PHP

<?php
namespace League\Flysystem;
use SplFileInfo;
class UnreadableFileException extends Exception
{
public static function forFileInfo(SplFileInfo $fileInfo)
{
return new static(
sprintf(
'Unreadable file encountered: %s',
$fileInfo->getRealPath()
)
);
}
}