Flag for dealing with existing files: Replace the existing file. Related topics
file_stream_wrapper_uri_normalize($uri) Normalizes a URI by making it syntactically correct.
file_directory_temp() Gets and sets the path of the configured temporary directory. Return
file_uri_target($uri) Returns the part of a URI after the schema. Parameters
Indicates that the file is permanent and should not be deleted. Temporary files older than the system.file.temporary_maximum_age configuration
file_delete_multiple(array $fids) Deletes files. Instead of directly deleting
file_uri_scheme($uri) Returns the scheme of a URI (e.g. a stream).
drupal_realpath($uri) Resolves the absolute filepath of a local URI or filepath.
file_unmanaged_delete_recursive($path, $callback = NULL) Deletes all files and directories in the specified
Common file handling functions. File core/includes/
Page 2 of 5