aboutsummaryrefslogtreecommitdiff
path: root/extmod/vfs_fat.c
AgeCommit message (Collapse)Author
2016-07-16extmod/vfs_fat: Implement rmdir() method.Paul Sokolovsky
Shares the code with remove() method due to the same underlying f_unlink() FatFs operation.
2016-06-16esp8266: Use RTC to set date & time stamps for files.Robert HH
The time stamp is taken from the RTC for all newly generated or changed files. RTC must be maintained separately. The dummy time stamp of Jan 1, 2000 is set in vfs.stat() for the root directory, avoiding invalid time values.
2016-05-31extmod/vfs_fat: Mark anused "self" arg for fat_vfs_stat().Paul Sokolovsky
2016-05-31extmod/vfs_fat.c: Add vfs.stat().Robert HH
The call to stat() returns a 10 element tuple consistent to the os.stat() call. At the moment, the only relevant information returned are file type and file size.
2016-05-29extmod/vfs_fat: getcwd(): Use mp_obj_new_exception_arg1().Paul Sokolovsky
Copy-paste issue, with the original mistake in stmhal.
2016-05-29extmod/vfs_fat: chdir(), getcwd() methods should accept VFS object (self).Paul Sokolovsky
2016-05-29extmod/vfs_fat: Add getcwd() method.Paul Sokolovsky
Ported from stmhal.
2016-05-29extmod/vfs_fat: Add chdir() method.Paul Sokolovsky
Ported from stmhal.
2016-05-27extmod/vfs_fat*: Replace text error messages by POSIX error numbers.Robert HH
These changes are in line with similar changes in other modules, and with standard Python interface.
2016-05-20extmod: When including extmod headers, prefix path with extmod/.Damien George
2016-02-29extmod/vfs_fat: Add .rename() method.Paul Sokolovsky
2016-02-29extmod/vfs_fat: Add .mkdir() method.Paul Sokolovsky
2016-02-28extmod/vfs_fat: Fix unused param warning/error.Paul Sokolovsky
2016-02-28extmod/vfs_fat: Add .remove() method.Paul Sokolovsky
Based on stmhal implementation - rather small, so just duplicating.
2016-02-28extmod/vfs_fat: Move listdir() method from stmhal for reuse.Paul Sokolovsky
2016-02-15extmod/vfs_fat_file: Reusable FatFs module, move from stmhal/file.Paul Sokolovsky
2016-02-14extmod/fsusermount,vfs_fat: Nanbox cleanness.Paul Sokolovsky
2016-02-14extmod/vfs_fat: Object-oriented encapsulation of FatFs VFS.Paul Sokolovsky
This implements OO interface based on existing fsusermount code and with minimal changes to it, to serve as a proof of concept of OO interface. Examle of usage: bdev = RAMFS(48) uos.VfsFat.mkfs(bdev) vfs = uos.VfsFat(bdev, "/ramdisk") f = vfs.open("foo", "w") f.write("hello!") f.close()