#file-io #system #prelude #rename

iofs

a simple lib for file system, input and output

8 releases

0.0.8 Jul 23, 2023
0.0.7 Jul 22, 2023
0.0.3 Jun 5, 2023
0.0.1 May 25, 2023

#1314 in Filesystem

Download history 49/week @ 2024-07-28 16/week @ 2024-09-22 5/week @ 2024-09-29

86 downloads per month

MIT license

90KB
3K SLoC

Example

File System

use iofs::prelude::*;

fn main() -> std::io::Result<()> {
    let mut f = FileInfo::open_smart("foo.txt")?;
    f.rename("new_name")?;
    assert!(f.name(), "new_name.txt");
    Ok(())
}

IO

use iofs::io::Console;  
fn main() -> stools::io::Result<()> {  
	let mut console = Console::new();  
	let n = console.input::<i32>(Some("input a number: "))?;  
	Ok(())  
}

Dependencies

~0–9MB
~84K SLoC