Paul Sokolovsky
298c2ae2c7
extmod/vfs_fat: Mark anused "self" arg for fat_vfs_stat().
2016-05-31 15:42:08 +03:00
Robert HH
ee009d713a
extmod/vfs_fat.c: Add vfs.stat().
...
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-31 13:03:12 +03:00
Paul Sokolovsky
480159ca8b
extmod/vfs_fat: getcwd(): Use mp_obj_new_exception_arg1().
...
Copy-paste issue, with the original mistake in stmhal.
2016-05-29 20:04:53 +03:00
Paul Sokolovsky
ee5e3f6527
extmod/vfs_fat: chdir(), getcwd() methods should accept VFS object (self).
2016-05-29 18:52:41 +03:00
Paul Sokolovsky
cac6c9704e
extmod/vfs_fat: Add getcwd() method.
...
Ported from stmhal.
2016-05-29 18:23:59 +03:00
Paul Sokolovsky
f12146cbf6
extmod/vfs_fat: Add chdir() method.
...
Ported from stmhal.
2016-05-29 18:17:00 +03:00
Robert HH
7c004e794c
extmod/vfs_fat*: Replace text error messages by POSIX error numbers.
...
These changes are in line with similar changes in other modules, and
with standard Python interface.
2016-05-27 23:57:01 +03:00
Damien George
f9dc644017
extmod: When including extmod headers, prefix path with extmod/.
2016-05-20 12:46:20 +01:00
Paul Sokolovsky
e0821830b0
extmod/vfs_fat: Add .rename() method.
2016-02-29 01:23:53 +02:00
Paul Sokolovsky
bbe832a0b2
extmod/vfs_fat: Add .mkdir() method.
2016-02-29 00:03:20 +02:00
Paul Sokolovsky
6f469209e9
extmod/vfs_fat: Fix unused param warning/error.
2016-02-28 20:45:51 +02:00
Paul Sokolovsky
19749db7bf
extmod/vfs_fat: Add .remove() method.
...
Based on stmhal implementation - rather small, so just duplicating.
2016-02-28 20:30:07 +02:00
Paul Sokolovsky
cd6d189f48
extmod/vfs_fat: Move listdir() method from stmhal for reuse.
2016-02-28 17:17:24 +02:00
Paul Sokolovsky
6b0c88256b
extmod/vfs_fat_file: Reusable FatFs module, move from stmhal/file.
2016-02-15 00:16:46 +02:00
Paul Sokolovsky
1bb15ca427
extmod/fsusermount,vfs_fat: Nanbox cleanness.
2016-02-14 19:15:22 +02:00
Paul Sokolovsky
e9be6a378c
extmod/vfs_fat: Object-oriented encapsulation of FatFs VFS.
...
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()
2016-02-14 19:15:21 +02:00