FAT class of PicoRuby

Type aliases

stat_t

{size: Integer?, unixtime: Integer?, mode: Integer}

driver_t

nil|SPI

Singleton methods

init_spi

FAT.init_spi(String unit, Integer sck_pin, Integer cipo_pin, Integer copi_pin, Integer cs_pin) -> 0

new

FAT.new(Symbol|String device, ?label: String?, ?driver: driver_t) -> FAT

unixtime_offset=

FAT.unixtime_offset=(Integer) -> Integer

vfs_methods

FAT.vfs_methods-> FAT::VFSMethods

Instance methods

chdir

instance.chdir(String path) -> 0

chmod

instance.chmod(Integer mode, String path) -> 0

contiguous?

instance.contiguous?(String path) -> bool

directory?

instance.directory?(String path) -> bool

erase

instance.erase-> 0

exist?

instance.exist?(String path) -> bool

getfree

instance.getfree(String path) -> Integer

getlabel

instance.getlabel-> String

mkdir

instance.mkdir(String path, ?Integer mode) -> 0

mkfs

instance.mkfs-> FAT

mount

instance.mount(String mountpoint) -> 0

open_dir

instance.open_dir(String path) -> FAT::Dir

open_file

instance.open_file(String path, String mode) -> FAT::File

rename

instance.rename(String from, String to) -> 0

sector_count

instance.sector_count-> {total: Integer, free: Integer}

setlabel

instance.setlabel-> 0

stat

instance.stat(String path) -> Stat
instance.unlink(String path) -> 0

unmount

instance.unmount-> nil

utime

instance.utime(Time atime, Time mtime, String path) -> Integer

Attr accessors

mountpoint (reader)

instance.mountpoint -> String

prefix (reader)

instance.prefix -> String
Tags: class