Issue with using API 'listfiles'
Hello,
I'm trying to extract the list of all files within public_html. When I use the API 'listfiles', it gives me the list of files and directories in the root folder. However, I need the list of files within folders >> sub-folders >> sub-sub-folders, etc.
I have written a recursive function which extracts files whenever the API results a directory. However, this function is taking a long time and I'm ending up getting a time-out error.
Hope someone on this forum can help me out here.
Thanks,
Karan
-
Hello :) You can see a list of options for this function, including information about the directory you are listing the files for, at: UAPI Functions - Fileman::list_files - Software Development Kit - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
1 comment