cPanel API 2 Modules - Fileman
Warning:
The cPanel API 2 system is deprecated. We strongly recommend that you use UAPI instead of cPanel API 2.
Introduction
The Fileman
module provides access to file functions.
Important:
When you enable a non-Standard Node server profile, the system disables API calls associated with that profile's disabled roles.
Available functions
-
cPanel API 2 Functions -
Fileman::autocompletedir
— This function queries files and directories. -
cPanel API 2 Functions -
Fileman::fileop
— This function performs an operation on one or more files. -
cPanel API 2 Functions -
Fileman::getabsdir
— This function lists cPanel's current directory. -
cPanel API 2 Functions -
Fileman::getdir
— This function returns an account's home directory's path in URI-encoded format. -
cPanel API 2 Functions -
Fileman::getdiractions
— This function lists possible directory actions. -
cPanel API 2 Functions -
Fileman::getdiskinfo
— This function returns an account's disk usage statistics. -
cPanel API 2 Functions -
Fileman::getedittype
— This function returns a file's type. -
cPanel API 2 Functions -
Fileman::getfileactions
— This function lists possible file actions. -
cPanel API 2 Functions -
Fileman::getpath
— This function splits a URI-encoded path into individual parts. -
cPanel API 2 Functions -
Fileman::listfiles
— This function lists a directory's files and their attributes. -
cPanel API 2 Functions -
Fileman::mkdir
— This function creates a directory. -
cPanel API 2 Functions -
Fileman::mkfile
— This function creates a file. -
cPanel API 2 Functions -
Fileman::savefile
— This function saves a string to a file. -
cPanel API 2 Functions -
Fileman::search
— This function recursively searches for a file within a directory. -
cPanel API 2 Functions -
Fileman::statfiles
— This function lists file information. -
cPanel API 2 Functions -
Fileman::uploadfiles
— This function uploads files. -
cPanel API 2 Functions -
Fileman::viewfile
— This function lists file information.