Liking cljdoc? Tell your friends :D

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.

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

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close