Re-exports§
pub use write::*;
Modules§
Statics§
- directory separator
- directory separator
Functions§
- create dir if does not exists
if dir is file, will be create parent dir
if create fail, will be call log::error
see log::error, try_create_dir - create file if does not exists
if create fail, will be call log::error
see log::error, try_create_file
if y want to create or open file, see open_create_file - just creating file, not creating directories. will be create fail when directories is not exists
change by File::create method, File::create not read permission
just open file see just_open_file - just open file, not creating directories. will be create fail when directories is not exists
change by File::open method, File::open not write permission
just create file see just_create_file - open or create file
- read all bytes to string
if file is so big, call this method is not good idea if read fail, will be call log::error and return String::new()
see log::error, try_read_to_str - read all all to vec
if file is so big, call this method is not good idea
if read fail, will be call log::error and return Vec::new()
see log::error, try_read_to_vec - will be delete file and create file
- try create dir if does not exists
if dir is file, will be create parent dir - try create file if does not exists
if file is dir, will be return Err
if y want to create or open file, see open_create_file - try read all bytes to string
if file is so big, call this method is not good idea - try read all bytes to vec
if file is so big, call this method is not good idea