Description
This function lists an account's FTP users.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Ftp::list_ftp
— This function lists FTP account information.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
user |
string |
The FTP username. |
A valid email address. |
example |
type |
string |
The type of FTP account. |
|
main |
homedir |
string |
The path to the account's home directory. |
A valid absolute path. |
/home/example |
reason |
string |
A reason for failure. Note: This function only returns areason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |