Description

This function retrieves the passwd file's location.

Examples




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$locate_passwd = $cpanel->api1('LeechProtect','showpasswdfile', array('/home/username/public_html/protected_directory/') ); // Call the function.

 



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $locate_passwd = $cpliveapi->api1('LeechProtect','showpasswdfile', ['/home/username/public_html/protected_directory/']); # Call the function.

 


<cpanel Module="LeechProtect::showpasswdfile($FORM('dir'))">




cpapi1 --user=username LeechProtect showpasswdfile /home/username/public_html/protected_directory/



/home/user/.htpasswds/public_html/test/passwd




Parameters

ParameterTypeDescriptionPossible valuesExample
dirstring

Required

The directory's name.

A valid absolute directory path.
/home/username/public_html/protected_directory/

Returns

This function returns an absolute path to the desired passwd file.