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.

Anybody who knows how to add file count feature in cPanel

Discussion in 'cPanel Developers' started by urbansh, Jun 5, 2012.

  1. urbansh

    urbansh Registered

    Joined:
    Jun 5, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Anybody who knows how to add file count feature in cPanel? I would like to know whether there is any addon module can achieve this.
    If not,how can I make it? I want the user can see the the number of inodes occupied in cPanel.Any suggestion would be appreciated.Thank you.
     
  2. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Not sure if there is an addon module for this, there is definitely not an api call for it(at least from what i've looked at for it) How can you make it? See: cPanel & WHM's SDK

    I'm thinking of a wrapper around the quota command will be the best way to accomplish this. If you want to have a break down like "Disk Space Usage" you will need to loop through all the directories and get the inodes which could end up being quite intensive.
     
  3. urbansh

    urbansh Registered

    Joined:
    Jun 5, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for your nice tips.I'm not familiar with module development.I'm looking for if there's a thing like third-party or addon module for me to make it.
    Any one who know more can share you idea.Thank you!
     

Share This Page