Skip to content
New issue

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

Bug listfolder API #32

Open
LucaF87 opened this issue Feb 7, 2024 · 1 comment
Open

Bug listfolder API #32

LucaF87 opened this issue Feb 7, 2024 · 1 comment

Comments

@LucaF87
Copy link

LucaF87 commented Feb 7, 2024

I have a problem on check if directory exists. (On pcloud filemanager i see the folder...)

I used pCloud\Sdk\Folder->search($path) method, but always return this error message: pCloud\Sdk\Exception Directory does not exist.

I tested with other folder methods, but the result is the same.

@JeanLouisMassei
Copy link

JeanLouisMassei commented Apr 14, 2024

Hi,

Did some researches about your issue.

Seems the search method of Folder call API endpoint listfolder, which allow to search either by folderiD or by path, but the php SDK has chosen to use path only :
https://docs.pcloud.com/methods/folder/listfolder.html

Still you can use $pCloudFolder->getContent($folderId); if you want to read all the folders or files in one specific folder, as long as you know its id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants