Crate jui_file

Source

Re-exports§

pub use write::*;

Modules§

write

Statics§

separator
directory separator
separator_str
directory separator

Functions§

create_dir
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
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_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
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_create_file
open or create file
read_to_str
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_to_vec
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
recreate_file
will be delete file and create file
try_create_dir
try create dir if does not exists
if dir is file, will be create parent dir
try_create_file
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_to_str
try read all bytes to string
if file is so big, call this method is not good idea
try_read_to_vec
try read all bytes to vec
if file is so big, call this method is not good idea