56 Commits

Author SHA1 Message Date
Gordon Williams
80db15bd61 add low memory warning if file allocation fails 2018-11-13 13:10:36 +00:00
Gordon Williams
d71c82c012 fix #1230 2018-04-10 08:36:03 +01:00
Gordon Williams
1e23aa6553 remove hidden char from vars that are already in hiddenRoot 2018-03-09 10:54:09 +00:00
Gordon Williams
07ae7710e3 updated filesystem docs 2018-01-29 15:43:10 +00:00
Gordon Williams
2b08fe86af fix warnings 2017-12-14 13:03:26 +00:00
Gordon Williams
1068563563 Increase default internal SD card bitrate to 4MHz (from 100k) 2017-12-13 12:43:33 +00:00
Gordon Williams
fe2fe0e2d8 Filesystem API now uses flat strings (avoiding the 512 byte copy for each call) 2017-12-13 12:20:00 +00:00
Gordon Williams
26240e3909 Add E.setFlags({unsyncFiles:1} which doesn't sync the file to the SD card after each write - it's *much* faster 2017-12-13 11:59:13 +00:00
Gordon Williams
aa09ad4f97 jsvNewIterator now has an option to iterate over sparse arrays as if they weren't sparse
Fixed some built-in functions that misbehaved when given sparse arrays
2017-11-24 12:47:43 +00:00
Gordon Williams
735c014659 Internal: Added initialiser argument to jsvNewStringOfLength
Internal: Added jsvObjectSetChildVar/jsvObjectSetChildVar/jsvObjectSetChildVar
            Internal: Fix jsvCopy if given a NAME_INT/etc
            Added ES6's Object.assign
2017-08-31 16:42:31 +01:00
wilberforce
6fc95d1e7f Fat FS: closedir after readdir, FS errors should be catchable (#1164), fs.statSync (#1163) 2017-05-11 12:37:55 +01:00
Gordon Williams
38cb9eab9f Add Array.indexOf fromIndex support (fix #162) 2017-05-05 13:46:58 +01:00
wilberforce
897524388e Merge branch 'master' into ESP32 2017-04-26 15:13:34 +12:00
Gordon Williams
8ec31cff7a fix broken formatting for code 2017-04-24 11:48:27 +01:00
wilberforce
0fb9ed1e21 suppress warnings, FatFS docs, suppress logging 2017-04-22 11:17:45 +12:00
Gordon Williams
7097e156f0 remove un-needed ifdef that was overwriting docs for one about ESP32 (#1145) 2017-04-19 13:26:46 +01:00
wilberforce
5f08a95cb7 Fix File.read so that end of file triggers pipe.end event 2017-04-11 23:16:24 +12:00
wilberforce
6ef6ab4028 get ESP8266 compiling 2017-03-23 15:45:05 +13:00
wilberforce
d93ea2ad6f Add fs.mkdir, E.flashFatFS({format:true}); 2017-03-23 13:50:56 +13:00
wilberforce
a167bd3eeb add build type FLASHFS 2017-03-23 01:05:20 +13:00
wilberforce
6f7dbbea39 clean up functions, add auto format 2017-03-22 17:43:39 +13:00
wilberforce
1b8e57aba7 working read of flash fat filesystem 2017-03-22 01:55:03 +13:00
wilberforce
9541573f58 add more debugging - still crashes on read 2017-03-21 22:13:10 +13:00
wilberforce
0ce596887b #ifdefs 2017-03-21 16:29:57 +13:00
wilberforce
0460845615 flash_diskio.c can write - but read crashes 2017-03-21 00:31:12 +13:00
wilberforce
017ccaff15 Add stub for jswrap_E_flashFatFs(addr,format) 2017-03-20 21:30:37 +13:00
Gordon Williams
51bc3e77a0 squish warnings 2016-11-18 10:24:36 +00:00
Gordon Williams
61d57044bd Fix corrupted file reads (turns out it just read the same stuff over and over) - Fix #955 2016-10-24 14:00:46 +01:00
Gordon Williams
c7f1a04dd4 readFile (and File.read) now uses Flat Strings to allow more memory efficient reads (fix #932) 2016-10-14 15:37:19 +01:00
Gordon Williams
c7104a1e5e Fixed instability when resetting after using SD card on non-standard pins 2015-11-16 14:49:18 +00:00
Gordon Williams
fb2ab0bf4b Throw exceptions for GetString overflows 2015-09-18 10:47:14 +01:00
Gordon Williams
9509b06681 Make sure E.unmountSD doesn't forget custom SD card configs from E.connectSDCard 2015-06-03 10:41:33 +01:00
Gordon Williams
432543bcbf Shorten some internal property names (faster/less mem is 4 chars or under)
Change 'internal property' prefix from '>' (fix #540)
2015-06-03 10:04:49 +01:00
Gordon Williams
cbac95ccf4 Tweaks to keep code size low enough for Olimexino 2015-05-14 14:24:18 +01:00
Gordon Williams
8db046a05a oops - fix SDIO compile 2015-02-05 17:42:59 +00:00
Gordon Williams
93c1dccd88 Allow filesystem to work on user-defined pins (fix #427) 2015-02-05 16:29:42 +00:00
Gordon Williams
acb068e965 Remove libraries from root scope (fix #463) 2014-12-11 15:51:50 +00:00
Gordon Williams
ea36e8ea4b Added fs.stat and File.seek (fix #429, fix #430) 2014-09-26 10:18:24 +01:00
Gordon Williams
933d14a988 refactor comments 2014-09-11 13:38:48 +01:00
Gordon Williams
22253d3cbf Merge fs_kill and file_kill to ensure that files always die before the filesystem
Add `E.unmountSD()` to allow SD cards to be removed once they have been used
2014-08-11 16:00:45 +01:00
Gordon Williams
204ab7ae0b big refactor - merge Array and Object Iterators, as they do the same thing 2014-08-08 13:40:51 +01:00
Gordon Williams (u36)
c1027393d7 Fix memory leak in filesystem file open (when failure) 2014-07-18 10:24:02 +01:00
Gordon Williams
c15c55dfe2 updated docs to help tern determine what objects are returned 2014-07-15 17:23:01 +01:00
Gordon Williams
adb58a6796 Move hidden lists out of the root scope (fix #357) 2014-07-01 14:33:10 +01:00
Gordon Williams
b3de0eac40 Move Serial.onData(...) to Serial.on('data',...)
Add Serial.read/available/pipe (fix #383)
            Add HTTP client/server read/available/pipe
            Add documentation for events (and tidy it up for constructors)
2014-06-19 14:50:43 +01:00
Gordon Williams
8b433b7393 Improve file read speed for large reads 2014-06-09 11:04:23 +01:00
Gordon Williams
3e3d7ef543 fs.appendFile() now works even if the file doesn't exist (fix #385) 2014-06-02 16:29:47 +01:00
Gordon Williams
632ac9a154 update file docs 2014-06-02 14:30:27 +01:00
Gordon Williams
8d057673d2 Fix file append/skip issues 2014-05-16 09:01:19 +01:00
Gordon Williams
c87697c231 Save memory on Olimexino boards by removing LFN support 2014-05-15 15:08:22 +01:00