Amazon_S3_And_CloudFront::remove_local_files PHP Method

remove_local_files() public method

Remove files from the local site
public remove_local_files ( array $file_paths )
$file_paths array array of files to remove
    function remove_local_files($file_paths)
    {
        foreach ($file_paths as $path) {
            if (false !== ($pre = apply_filters('as3cf_preserve_file_from_local_removal', false, $path))) {
                continue;
            }
            if (!@unlink($path)) {
                AS3CF_Error::log('Error removing local file ' . $path);
            }
        }
    }
Amazon_S3_And_CloudFront