Free Support Forum - aspose.cloud

PHP SDK: Issue deleting a folder that have files

Hello Aspose Support,

We are facing an issue with the PHP SDK that previously we didn’t face with the deprecated Laravel Package.

The issue that when we create a folder and inside it files, and then we use the code example of deleteFolder, it throws this exception (attached), but when the folder is empty and have no files it didn’t throw any exception.

Also we tried with the flag of recursive and without it, and same exception happens.screenshot_from_2018-03-05_10-04-55.png (26.9 KB)

Let us know if you need more details to replicate the issue.

Thanks.

@Softwareselskabet

Thank you for contacting Aspose Support.

Problem is not with the delete /storage/folder API. Following Postman example successfully delete the folder with files.

We are testing Aspose.Storage Cloud SDK for PHP for the reported issue and will update you shortly about our findings.

@Softwareselskabet

The issue has been fixed. Please download aspose/storage-sdk-php package version 1.0.1.
https://packagist.org/packages/aspose/storage-sdk-php