WordPress at a glance

File system (WP_Filesystem) (category)


Copies a directory from one location to another via the WordPress Filesystem Abstraction.


Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep. The depth of the recursiveness can be controlled by the $levels param.


Unzips a specified ZIP file to a location on the Filesystem via the WordPress Filesystem Abstraction. Assumes that WP_Filesystem() has already been called and set up. Does not extract a root-level __MACOSX directory, if present.


Delete a file. This function is a wrapper for PHP's unlink() function — it uses wp_delete_file filter before deleting a file.


Deletes a file if its path is within the given directory.