/home/kueuepay/public_html/vendor/league/flysystem/src/UnableToListContents.php
<?php

declare(strict_types=1);

namespace League\Flysystem;

use RuntimeException;
use Throwable;

final class UnableToListContents extends RuntimeException implements FilesystemOperationFailed
{
    public static function atLocation(string $location, bool $deep, Throwable $previous): UnableToListContents
    {
        $message = "Unable to list contents for '$location', " . ($deep ? 'deep' : 'shallow') . " listing\n\n"
            . 'Reason: ' . $previous->getMessage();

        return new UnableToListContents($message, 0, $previous);
    }

    public function operation(): string
    {
        return self::OPERATION_LIST_CONTENTS;
    }
}
Best Practice

Best Practices

To ensure a smooth integration process and optimal performance, follow these best practices:

  1. Use secure HTTPS connections for all API requests.
  2. Implement robust error handling to handle potential issues gracefully.
  3. Regularly update your integration to stay current with any API changes or enhancements.