Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How show contents of a dir

Discussion in 'cPanel Developers' started by 000, Mar 28, 2012.

  1. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    66
    Here:

    Writing cPanel Modules

    we read is possible cresate modules...

    I need the elemental module "module_list_dir".

    Please help about how we can create this and AFTER, call from JSON-API.


    Samplely some similar to:

    #!/usr/bin/perl
    if(exist($dir)){
    return ls -l $dir;
    }


    And this is all.
    Nothing more.

    Surely much users know how do this, but no me.

    Some help please...
     
  2. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    I hope this helps someone..

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice