The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Issue with using API 'listfiles'

Discussion in 'cPanel Developers' started by karan1, Feb 17, 2016.

  1. karan1

    karan1 Registered

    Joined:
    Feb 17, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page