Littlefs class of PicoRuby
Type aliases
stat_t
{size: Integer?, unixtime: Integer?, mode: Integer}
driver_t
nil|SPI|SDMMC
Singleton methods
init_sdmmc
Littlefs.init_sdmmc(Integer clk_pin, Integer cmd_pin, Integer d0_pin) -> 0
init_spi
Littlefs.init_spi(String unit, Integer sck_pin, Integer cipo_pin, Integer copi_pin, Integer cs_pin) -> 0
new
Littlefs.new(Symbol | String device, ?label: String?, ?driver: driver_t) -> void
unixtime_offset=
Littlefs.unixtime_offset=(Integer) -> Integer
vfs_methods
Littlefs.vfs_methods-> Littlefs::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() -> Integer
getlabel
instance.getlabel-> String
mkdir
instance.mkdir(String path, ?Integer mode) -> 0
mkfs
instance.mkfs-> Littlefs
mount
instance.mount(String mountpoint) -> 0
open_dir
instance.open_dir(String path) -> Littlefs::Dir
open_file
instance.open_file(String path, String mode) -> Littlefs::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
unlink
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