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

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

#1552 in Filesystem

Download history 1/week @ 2024-11-13 3/week @ 2024-11-20 6/week @ 2024-11-27 8/week @ 2024-12-04 18/week @ 2024-12-11 3/week @ 2024-12-18 8/week @ 2025-01-15 8/week @ 2025-02-05 34/week @ 2025-02-12 29/week @ 2025-02-26

71 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