| 
| bool  | is_local_and_single (url u) | 
|   | 
| static string  | as_local_path (url u) | 
|   | 
| bool  | is_directory (url u) | 
|   | 
| bool  | is_regular (url u) | 
|   | 
| bool  | is_symbolic_link (url u) | 
|   | 
| bool  | is_newer (url which, url than) | 
|   | 
| bool  | is_of_type (url name, string filter) | 
|   | 
| int  | file_size (url u) | 
|   | 
| int  | last_modified (url u) | 
|   | 
| static tb_long_t  | tb_directory_walk_func (tb_char_t const *path, tb_file_info_t const *info, tb_cpointer_t priv) | 
|   | 
| array< string >  | read_directory (url u, bool &error_flag) | 
|   | 
| url  | subdirectories (url u) | 
|   | 
| void  | mkdir (url u) | 
|   | 
| void  | make_dir (url which) | 
|   | 
| void  | rmdir (url u) | 
|   | 
| void  | chdir (url u) | 
|   | 
| url  | url_temp (string suffix) | 
|   | 
| url  | url_temp_dir_sub () | 
|   | 
| url  | url_temp_dir () | 
|   | 
| void  | move (url u1, url u2) | 
|   | 
| void  | copy (url u1, url u2) | 
|   | 
| void  | remove (url u) | 
|   | 
| static url  | find_the_first_exist (const url &u) | 
|   | lookup the first exist path in a bunch of url, if all url does not exist, then the last one will be used.  
  | 
|   | 
| static bool  | cleanup_and_return_finally (const file_status &status, const url &u, bool fatal, const string &reason) | 
|   | 
| file_status  | load_string_try (url u, string &s) | 
|   | 
| bool  | load_string (url u, string &s, bool fatal) | 
|   | 
| string  | string_load (url u) | 
|   | 
| file_status  | save_string_try (url u, const string &s) | 
|   | 
| bool  | save_string (url u, const string &s, bool fatal) | 
|   | 
| void  | string_save (const string &s, url u) | 
|   | 
| file_status  | append_string_try (url u, const string &s) | 
|   | 
| bool  | append_string (url u, const string &s, bool fatal) | 
|   | 
| void  | string_append_to_file (const string &s, url u) | 
|   | 
| void  | append_to (url what, url to) | 
|   | 
- Copyright
 - GPLv3
 
Unitests for file. 
- Author
 - Darcy 
 
- Date
 - 2019-2023 
 
Definition in file file.cpp.