How to extract a zip file via the UAPI?

Ram Freedman

Active Member
Jul 18, 2017
25
2
53
Israel
cPanel Access Level
Website Owner
Hi,
I upload a file to my server via sftp and now I want to use a UAPI command to extract the file to a certain folder - but I don't see such a command in the documentation in the Manage Files section.

I see that in the old cPanel API 2 Functions there is this call: Fileman::fileop but there is also this warning:

We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
So what is the way to extract a zip file to a specific folder while using the UAPI?
Regards,
Ram
 

Ram Freedman

Active Member
Jul 18, 2017
25
2
53
Israel
cPanel Access Level
Website Owner
Hi,
How are you?
I guess that I cannot use the new UAPI method and the old API2 call at the same time - right?
I mean that I cannot authenticate using the new UAPI method and call an API2 call - right?

Is there any plan that you are aware about - to add the Fileman::fileop to the new UAPI?

Thanks!
Ram