Project

slowfat

0.0
No commit activity in last 3 years
No release in over 3 years
FAT filesystem library for use with slow I/O (e.g. serial links)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

ruby-slowfat - FAT library for Ruby designed for slow links/media

Description

Ruby class/gem to access FAT filesystems (currently only FAT16) over slow links or media, such as serial connections. Prioritizes minimum I/O whenever possible, and flexible backing (anything subclassed from IO that can seek and read).

Features

  • FAT16 support
  • Read and format directory listings
  • Read contents of files

TODO

  • FAT12 support
  • Write support
  • Optimize a couple places where we might do more I/O than required

Use

require 'slowfat'

img = File.open("test_fat16.img", 'r')
fs = SlowFat::Filesystem.new(backing: img, base: 0x7E00)
print fs.dir("WINDOWS").to_s
print fs.file("WINDOWS/SETUP.TXT").contents

Full Documentation

YARD docs included, also available on RubyDoc.info