#file-io #system #rename

stools

a simple lib for file system, input and output

3 stable releases

1.1.6 May 18, 2023
1.1.0 May 16, 2023
1.0.8 Apr 6, 2023
1.0.1 Mar 24, 2023
0.1.0 Feb 8, 2023

#686 in Filesystem

MIT license

84KB
2.5K SLoC

Example

File System

use stools::prelude::*;
fn main() -> std::io::Result<()> {
	let mut f = FileInfo::open_or_create("foo.txt")?;
	f.rename("new_name")?;
	println!("{}", f.full_name());
	Ok(())	
}

IO

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

No runtime deps

Features