WordPress 2.6.0 Hooks, Functions, Classes and Methods
Page 6

list_files()

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

media_handle_sideload()

Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().