filename, $new_path . '/' . $file->basename); } // Ignore any warnings from rmdir() about remaining files in the old // directory (they will NOT be deleted). @rmdir($old_path); } } } /** * @todo Remove file_directory_path() from demo_dump_path variable. */