WordPress File wp-admin/includes/file.php

copy_dir()

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

download_url()

Downloads a URL to a local temporary file using the WordPress HTTP API.

get_filesystem_method()

Determines which method to use for reading, writing, modifying, or deleting files on the filesystem.

get_home_path()

Gets the absolute filesystem path to the root of the WordPress installation.

list_files()

Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep.