Software Development Kit

cPanel & WHM's API [+] cPanel & WHM's API [-]


Modules and Plugins [+] Modules and Plugins [-]


cPanel & WHM Hooks [+] cPanel & WHM Hooks [-]


cPAddons (Site Software) [+] cPAddons (Site Software) [-]


System Administration [+] System Administration [-]


Developer Software [+] Developer Software [-]


Back to All Documentation



integrationblogcta.jpg

FSTest Module Documentation

This module allows users to see whether a directory is empty.

The functions within this module may or may not be governed by a feature list. The required feature list may vary from function to function, to review a total list of the available features sets on a cPanel server, please see "Feature Manager" in WHM.

FSTest::dirisempty

API Version: 2 - Click here for documentation
Description: Check to see if a specific directory is empty.
Parameters:  
  dir (string)
  The full path to the directory you wish to test. (e.g. /home/user/public_html/subdomain/).
  files_only (boolean (optional))
  A value of '1' indicates that the specified directory must contain files (not just directories) to not be counted as empty.
  regex_ext (perl regex (optional))
  Regular expressions allow you to filter results based on a set of criteria you define. You may choose to only count files with an extension that matches your regular expressions.
Returns:  
 
<data>

</data>

Topic revision: r2 - 26 Mar 2012 - 15:57:37 - Main.JenniferDoubrava