Title: wp-admin/includes/class-wp-filesystem-ftpext.php | Developer.WordPress.org

---

# File: wp-admin/includes/class-wp-filesystem-ftpext.php

 * method[WP_Filesystem_FTPext::is_readable()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_readable/)
 * Checks if a file is readable.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_readable/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_readable/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:487](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L487-L489)
 * method[WP_Filesystem_FTPext::is_writable()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_writable/)
 * Checks if a file or directory is writable.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_writable/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_writable/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:499](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L499-L501)
 * method[WP_Filesystem_FTPext::atime()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/atime/)
 * Gets the file’s last access time.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/atime/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/atime/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:511](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L511-L513)
 * method[WP_Filesystem_FTPext::mtime()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/mtime/)
 * Gets the file modification time.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/mtime/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/mtime/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:523](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L523-L525)
 * method[WP_Filesystem_FTPext::size()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/size/)
 * Gets the file size (in bytes).
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/size/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/size/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:535](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L535-L539)
 * method[WP_Filesystem_FTPext::touch()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/touch/)
 * Sets the access and modification times of a file.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/touch/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/touch/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:555](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L555-L557)
 * method[WP_Filesystem_FTPext::mkdir()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/mkdir/)
 * Creates a directory.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/mkdir/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/mkdir/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:573](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L573-L587)
 * method[WP_Filesystem_FTPext::rmdir()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/rmdir/)
 * Deletes a directory.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/rmdir/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/rmdir/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:599](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L599-L601)
 * method[WP_Filesystem_FTPext::parselisting()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/parselisting/)
 * Parses an individual entry from the FTP LIST command output.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/parselisting/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/parselisting/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:626](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L626-L720)
 * method[WP_Filesystem_FTPext::is_file()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_file/)
 * Checks if resource is a file.
 * Used by [3 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_file/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_file/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:455](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L455-L457)
 * method[WP_Filesystem_FTPext::dirlist()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/dirlist/)
 * Gets details for files in a directory or a specific file.
 * Used by [6 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/dirlist/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/dirlist/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:757](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L757-L819)
 * method[WP_Filesystem_FTPext::is_dir()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_dir/)
 * Checks if resource is a directory.
 * Used by [3 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_dir/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/is_dir/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:467](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L467-L477)
 * method[WP_Filesystem_FTPext::__destruct()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/__destruct/)
 * Destructor.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/__destruct/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/__destruct/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:826](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L826-L830)
 * method[WP_Filesystem_FTPext::chdir()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/chdir/)
 * Changes current directory.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/chdir/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/chdir/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:247](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L247-L249)
 * method[WP_Filesystem_FTPext::chmod()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/chmod/)
 * Changes filesystem permissions.
 * Used by [3 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/chmod/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/chmod/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:263](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L263-L289)
 * method[WP_Filesystem_FTPext::owner()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/owner/)
 * Gets the file owner.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/owner/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/owner/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:299](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L299-L303)
 * method[WP_Filesystem_FTPext::getchmod()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/getchmod/)
 * Gets the permissions of the specified file or filepath in their octal format.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/getchmod/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/getchmod/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:313](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L313-L317)
 * method[WP_Filesystem_FTPext::group()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/group/)
 * Gets the file’s group.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/group/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/group/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:327](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L327-L331)
 * method[WP_Filesystem_FTPext::copy()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/copy/)
 * Copies a file.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/copy/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/copy/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:346](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L346-L358)
 * method[WP_Filesystem_FTPext::connect()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/connect/)
 * Connects filesystem.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/connect/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/connect/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:85](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L85-L126)
 * method[WP_Filesystem_FTPext::move()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/move/)
 * Moves a file or directory.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/move/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/move/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:378](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L378-L380)
 * method[WP_Filesystem_FTPext::get_contents()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/get_contents/)
 * Reads entire file into a string.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/get_contents/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/get_contents/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:137](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L137-L163)
 * method[WP_Filesystem_FTPext::delete()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/delete/)
 * Deletes a file or directory.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/delete/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/delete/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:394](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L394-L416)
 * method[WP_Filesystem_FTPext::get_contents_array()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/get_contents_array/)
 * Reads entire file into an array.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/get_contents_array/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/get_contents_array/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:173](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L173-L175)
 * method[WP_Filesystem_FTPext::exists()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/exists/)
 * Checks if a file or directory exists.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/exists/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/exists/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:427](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L427-L445)
 * method[WP_Filesystem_FTPext::put_contents()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/put_contents/)
 * Writes a string to a file.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/put_contents/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/put_contents/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:188](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L188-L220)
 * method[WP_Filesystem_FTPext::cwd()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/cwd/)
 * Gets the current working directory.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/cwd/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/cwd/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:229](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L229-L237)
 * class[WP_Filesystem_FTPext](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/)
 * WordPress Filesystem Class for implementing FTP.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:16](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L16-L831)
 * method[WP_Filesystem_FTPext::__construct()](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/__construct/)
 * Constructor.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/__construct/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_filesystem_ftpext/__construct/#uses)
   | Source: [wp-admin/includes/class-wp-filesystem-ftpext.php:31](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-filesystem-ftpext.php#L31-L76)