#file-extension #read-file #lib #io #file-manager

bin+lib lib_file

File handling utility functions

3 releases

Uses new Rust 2024

new 0.1.2 May 19, 2025
0.1.1 May 14, 2025
0.1.0 May 9, 2025

#4 in #read-file

Download history 136/week @ 2025-05-07 217/week @ 2025-05-14

353 downloads per month

MIT license

32KB
383 lines

Functions for use in Managing File IO

The functions in the modules below were written to help manage file paths, file names, and other file-based operations. I've used them in several different projects which is why I've kept them together in a separate crate. Their greatest weakness is poor error handling, so keep that in mind if you choose to use them. By the way, I need help getting those weaknesses corrected, so if you feel like taking that on, please check out the issues tab in this crate's repository.

* VERSION = "0.1.2";
* AUTHOR = "John T. Reagan";
* LICENSE = "MIT";
* LICENSE_URL = "<https://opensource.org/licenses/MIT>";
* COPYRIGHT = "Copyright (c) 2025, John T. Reagan";
* REPOSITORY = "<https://github.com/jtreagan/lib_file>";

Note the following:

  1. I wrote these functions early-on while I was still learning Rust and the code quality reflects that.
  2. While the previous module -- file_fltk -- is dependent on the FLTK-RS crate, the functions in this module rely on the Rust standard crates along with some functions from lib_utils, another of my personal crates. These functions are all terminal-based.

lib_file

File handling utility functions.

Description

Not much more to say. I wrote the functions in this crate to help with other projects on which I am working.

Word of Caution

These functions tend to be weak on error handling. My suggestion is to copy the code into your project and then modify from there. Better than building from scratch. I think. Have fun!

Good Intentions

You will find some of these functions documented with really nice examples. The rest -- not so much. I always have intended to go back and add examples to the rest of them, but well, you know, time sometimes just isn't there. :>)

License

MIT license.

Dependencies

~16–23MB
~385K SLoC