WordPress at a glance
Home Functions Other Functions File system (WP_Filesystem)

File system (WP_Filesystem) (category)

copy_dir()

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

list_files()

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.

unzip_file()

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.

wp_delete_file()

Delete a file

wp_delete_file_from_directory()

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