#file #error #folders #create-file #command #file-writer #better

bin+lib better_file_maker

a way to create many files with one command

10 releases

0.1.9 Sep 12, 2022
0.1.8 Sep 9, 2022

#1287 in Filesystem

24 downloads per month
Used in 2 crates

MIT license

4KB

What does this package do?

this package make many folders with one command, rather then using a loop and causing an error.

How does it work?

The code loop through every slash and creates a new file and handles the errors, then returns the result.

How do i use it?

fn main() {
    better_file_maker::make_folders(&"yes/cool/somepath/makefile".to_string()).expect("");
}

What can cause an error?

  1. If the all of the folder exist it will throw an error.
  2. If the permissions where denied
  3. OS errors

No runtime deps