summaryrefslogtreecommitdiff
path: root/lib/oofatfs
AgeCommit message (Collapse)Author
2020-07-06Add license to some obvious files.Diego Elio Pettenò
2020-06-03Fix up end of file and trailing whitespace.Diego Elio Pettenò
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-02-28oofatfs: Remove _FS_DISK_READ_ALIGNEDJeff Epler
This workaround is no longer needed, so it can be removed. Closes: #2332
2019-12-10nRF: disk_read must be 4-byte alignedJeff Epler
.. a requirement that oofatfs needs to be taught to respect. This problem can be demonstrated with the following snippet, except that the related file ("test.bin") must also be contiguous on the filesystem. You can ensure this by reformatting your device's filesystem before testing, then copying any single file bigger than 4kB to test.bin. f = open("test.bin", "rb") f.seek(2048) b = bytearray(2048) v = memoryview(b) f.readinto(v[909:]) Closes: #2332
2019-02-03Add fast seek support to file objectsScott Shawcroft
2018-11-09shared-module/os: Fix os.mkdir('a/b')Noralf Trønnes
This fixes commit a99f9427420d("'/' and '\' are also acceptable ends of the path now") which broke mkdir. The problem is where the directory name is a single letter like this: >>> os.mkdir('a') >>> os.mkdir('a/b') Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: [Errno 17] File exists >>> os.mkdir('a/bb') >>> I wasn't smart enough to fix this in the oofatfs library, so I did it in the os shared module by creating a path lookup function for the os methods that only deals with directories. I reverted the library change introduced by the aforementioned commit. This means that os.stat and os.rename can't handle trailing slashes. This is to avoid allowing filenames with trailing slashes to pass through. In order to handle trailing slashes for these it would be necessary to check if it really is a directory before stripping. I didn't do this since the original issue was to make os.chdir tolerate trailing slashes. There's an open MicroPython issue #2929 wrt. trailing slashes and mkdir.
2018-07-28 '/' and '\' are also acceptable ends of the path nowLeszek Jakubowski
2017-01-31lib/oofatfs/ffconf.h: Add MICROPY_FATFS_NORTC option.Andrew Gatt
2017-01-31lib/oofatfs/ffconf.h: Allow to configure FS_EXFAT option.Damien George
Using MICROPY_FATFS_EXFAT. Enabling this has licensing implications; see https://www.microsoft.com/en-us/legal/intellectualproperty/mtl/exfat-licensing.aspx
2017-01-30lib/oofatfs: Update oofatfs library.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.12b, commit 46fb53331e7a583c29a41d37ce4b53f2718597e5.
2017-01-27lib/oofatfs: Update oofatfs library.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.12b, commit 1e295b40550664bbaac18d95a4b6a58154464d31.
2017-01-27lib/oofatfs: Add OO version of FatFS library.Damien George
From https://github.com/micropython/oofatfs, branch work-R0.12b, commit a346ccec123c2e4d887e2751d64156208d03bff4.