Description
This function displays a file.
Warning:
- UAPI (recommended) —
Fileman::list_files
— This function returns a sorted list of files and directories. - cPanel API 2 —
Fileman::viewfile
— This function lists file information.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
dir |
string |
Required The file's directory. |
Any valid directory name. |
user |
file |
string |
Required The file. |
Any valid filename |
myfile |
Returns
This function returns HTML that displays the file's properties.