Skip to content

Sturdy-Statistics/sturdy-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sturdy.fs

A small collection of file system utilities for Clojure.

This library provides a thin, opinionated wrapper around babashka.fs for common tasks such as reading and writing files, handling byte arrays, and working with paths.

Clojars Project

com.sturdystats/sturdy-fs {:mvn/version "VERSION"}

Features

  • Read files as bytes, strings, EDN, or lines
  • Write bytes, strings, or EDN with automatic parent directory creation
  • Optional atomic file writes
  • Simple helpers for path manipulation
  • POSIX permission helpers (chmod-600!, chmod-400!)

Design

  • Minimal API
  • Explicit error checking (via taoensso.truss)
  • No global state
  • Intended as a small shared utility library, not a full filesystem abstraction

Non-goals

  • Streaming or lazy IO
  • File watching
  • Platform-specific abstractions beyond what babashka.fs provides

License

Apache License 2.0

Copyright © Sturdy Statistics

About

A small collection of file system utilities for Clojure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published