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.

parsing output of Ftp::listftpwithdisk()

Discussion in 'cPanel Developers' started by ayik, Feb 19, 2009.

  1. ayik

    ayik Member
    PartnerNOC

    Joined:
    Oct 7, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I want to get FTP users which dont have a type either "main FTP Account" or not "log Account".

    Ftp::listftpwithdisk is likely the API i need. but i don't know how to parse the output. i always get any type of ftp users

    TIA
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The main FTP account will always have the same username as the cPanel account. The "log account" will always be that username with _logs appended to it.
     

Share This Page