grainfs 0.1.1

A pleasant file system API
Documentation
  • Coverage
  • 76.62%
    59 out of 77 items documented0 out of 49 items with examples
  • Size
  • Source code size: 36.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • alexkotusenko

grainfs

An simple & lightweight file system API library. This library abstracts away the mess that working with std::path and std::fs modules is, and exposes some functions you'd often use in your application (e.g. reading files, writing to files, checking if a file exists, etc).

Module overview:

  • path - general path operations
  • dir - directory operations
  • file - file operations
  • types - definitions for different filetypes
  • search - basic searching functionality
  • env - read environment variables (not fs per se, but environment variables are often paired with fs operations, so a lightweight API was included)

Scope

This is meant to be a tiny, dependency-free repo for a more pleasant experience when working with the file system API.

While this is technically a reinvention of the wheel, the amount of cognitive strain this library saves me from when working with files is worth the effort I put into it.

Stability

Expect breaking changes at any point until version 1.0.0.

Contributions

Any contributions are welcome!