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.

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:
    150
    Likes Received:
    0
    Trophy Points:
    16
    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:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    I hope this helps someone..

     
Loading...

Share This Page