# Manage Files

Files / Manage Files

## Return autocomplete file and directory names

 - [GET /Fileman/autocompletedir](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/autocompletedir.md): This function returns any files and directories that begin with a specified string.

Important:

  When you disable the File Storage role, the system disables this function.

## Delete .trash folder content

 - [GET /Fileman/empty_trash](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/empty_trash.md): This function purges content from the .trash folder in the user's home directory.

Important:

  When you disable the FileStorage role, the system disables this function.

## Return file content

 - [GET /Fileman/get_file_content](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/get_file_content.md): This function retrieves a file's content.

Important:

When you disable the File Storage role, the system disables this function.

Note:

JSON strings must be valid UTF-8. To retrieve a non-UTF-8 file via
JSON, we recommend that you give ISO-8859-1 as from_charset and
UTF-8 as to_charset, then decode the return payload’s content
as UTF-8.

## Return file or directory information

 - [GET /Fileman/get_file_information](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/get_file_information.md): This function returns the information for a specified file or directory.

Important:

When you disable the File Storage role, the system disables this function.

## Return directory content

 - [GET /Fileman/list_files](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/list_files.md): This function returns a sorted list of files and directories.

Important:

When you disable the FileStorage role, the system disables this function. For more information, read our How to Use Server Profiles documentation.

## Save file

 - [GET /Fileman/save_file_content](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/save_file_content.md): This function saves a file in a directory and encodes it in a character set.

Important:

  When you disable the File Storage role, the system disables this function.

## Update buffer encoding

 - [GET /Fileman/transcode](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/transcode.md): This function converts a buffer from one encoding language to another.

Important:

  When you disable the File Storage role, the system disables this function.

## Upload files

 - [GET /Fileman/upload_files](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/upload_files.md): This function uploads files.

Note:

  For more information about how to use this function in your custom code,
  read our [Use UAPI's Fileman::upload_files 
  Function in Custom Code tutorial](https://go.cpanel.net/tutorial-use-uapis-fileman-upload-files-function-in-custom-code). 

Important:

 When you disable the File Storage role, the system disables this function.

You cannot call this function through WHM API 1's uapi_cpanel function.

## Return autocomplete file and directory names

 - [GET /Fileman/autocompletedir](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/autocompletedir.md): This function returns any files and directories that begin with a specified string.

Important:

  When you disable the File Storage role, the system disables this function.

## Delete .trash folder content

 - [GET /Fileman/empty_trash](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/empty_trash.md): This function purges content from the .trash folder in the user's home directory.

Important:

  When you disable the FileStorage role, the system disables this function.

## Return file content

 - [GET /Fileman/get_file_content](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/get_file_content.md): This function retrieves a file's content.

Important:

When you disable the File Storage role, the system disables this function.

Note:

JSON strings must be valid UTF-8. To retrieve a non-UTF-8 file via
JSON, we recommend that you give ISO-8859-1 as from_charset and
UTF-8 as to_charset, then decode the return payload’s content
as UTF-8.

## Return file or directory information

 - [GET /Fileman/get_file_information](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/get_file_information.md): This function returns the information for a specified file or directory.

Important:

When you disable the File Storage role, the system disables this function.

## Return directory content

 - [GET /Fileman/list_files](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/list_files.md): This function returns a sorted list of files and directories.

Important:

When you disable the FileStorage role, the system disables this function. For more information, read our How to Use Server Profiles documentation.

## Save file

 - [GET /Fileman/save_file_content](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/save_file_content.md): This function saves a file in a directory and encodes it in a character set.

Important:

  When you disable the File Storage role, the system disables this function.

## Update buffer encoding

 - [GET /Fileman/transcode](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/transcode.md): This function converts a buffer from one encoding language to another.

Important:

  When you disable the File Storage role, the system disables this function.

## Upload files

 - [GET /Fileman/upload_files](https://api.docs.cpanel.net/specifications/cpanel.openapi/manage-files/upload_files.md): This function uploads files.

Note:

  For more information about how to use this function in your custom code,
  read our [Use UAPI's Fileman::upload_files 
  Function in Custom Code tutorial](https://go.cpanel.net/tutorial-use-uapis-fileman-upload-files-function-in-custom-code). 

Important:

 When you disable the File Storage role, the system disables this function.

You cannot call this function through WHM API 1's uapi_cpanel function.

