Description
This function checks whether an FTP account exists.
Note:
This function does not return a Boolean value to indicate whether the FTP account exists. Instead, it returns only metadata if the FTP account exists, or an error if the FTP account does not exist.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
The user's associated domain. This parameter defaults to the cPanel account's primary domain. Note: We introduced this parameter in cPanel & WHM version 54. |
A domain that the cPanel account owns. |
example.com |
user |
string |
Required The FTP account's username. |
An FTP username on the cPanel account. |
us_chickens |
Returns
- If the FTP account exists, this function only returns metadata.
-
If the FTP account does not exist, this function returns the following error message, where
user
represents the FTP account that you checked:The FTP account "user" does not exist.