Struct tembo::cli::file_utils::FileUtils
source · pub struct FileUtils {}Implementations§
source§impl FileUtils
impl FileUtils
pub fn create_dir(dir_name: String, dir_path: String) -> Result<(), Error>
pub fn create_file( file_name: String, file_path: String, file_content: String, recreate: bool ) -> Result<(), Error>
pub fn save_tembo_toml(default_text: &str) -> Result<(), Box<dyn Error>>
pub fn get_current_working_dir() -> String
Auto Trait Implementations§
impl Freeze for FileUtils
impl RefUnwindSafe for FileUtils
impl Send for FileUtils
impl Sync for FileUtils
impl Unpin for FileUtils
impl UnwindSafe for FileUtils
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more