Normally connected to the application via yandex-php-library, I can create directories, files, etc. But how can I check if such a folder already exists that I want to create. When using $disk->createDirectory('Папка'); (despite the fact that it already exists) php gives a fatal error and a simple If'om or try catch does not work at all.
- Judging by the code, createDirectory will throw a DiskRequestException, which in theory should successfully catch with a catch. Something in your php is broken, apparently - andmalmal
- Damn, catch really works, but why, when catch works and I just write echo "Exception caught" after this message anyway, this fatal error appears below? Need to disable display_error? + else, a catch appears warning: Warning: count: (): guzzlehttp / guzzle / src / Handler / CurlFactory.php on line 67 - Eugene
|