summaryrefslogtreecommitdiff
path: root/esp8266/moduos.c
AgeCommit message (Collapse)Author
2016-07-16esp8266/moduos: Add rmdir() function.Paul Sokolovsky
2016-05-31esp8266/moduos.c: Add stat() to the module uos of esp8266.Robert HH
This implementation makes use of vfs.stat() and therefore has the same properties. Known issues for all ports: uos.stat(".") on the top level returns the error code 22, EINVAL. The same happens with uos.stat("dirname/") where dirname IS the name of a directory.
2016-05-29esp8266/moduos: Add chdir() and getcwd() functions.Paul Sokolovsky
2016-05-16esp8266/moduos.c: Addition of the rename method to module uos.Robert HH
That one was missing in the module, even if it was available in the vfs object. The change consist of adding the name and preparing the call to the underlying vfs module, similar to what was already implemented e.g. for remove. Rename is useful by itself, or for instance for a safe file replace, consisting of the sequence: write to a temp file delete the original file rename the temp file to the original file's name
2016-05-10esp8266: Convert to use new MP_Exxx errno symbols.Damien George
These symbols are still defined in terms of the system Exxx symbols, and can be switched to internal numeric definitions at a later stage. Note that extmod/modlwip still uses many system Exxx symbols.
2016-04-17esp8266/moduos: Add dupterm_notify() function.Paul Sokolovsky
Should be called to notify that current dupterm object has more input data to read.
2016-04-14esp8266/moduos: Add uos.mkdir function.Damien George
2016-04-10esp8266/main: mp_builtin_open(): Implement, using vfs_proxy_call().Paul Sokolovsky
2016-03-29esp8266: Enable uos.dupterm() method.Paul Sokolovsky
2016-03-29esp8266: Implement os.urandom function.Damien George
Uses what is suspected to be a hardware random number generator.
2016-03-28esp8266: Allow to build without FatFs support again.Paul Sokolovsky
2016-03-28esp8266/moduos: Add os.remove(), proxying to VFS object.Paul Sokolovsky
2016-03-28esp8266/moduos: Factor out VFS method proxy helper.Paul Sokolovsky
2016-03-28esp8266/moduos: Add listdir() proxy for MP_STATE_PORT(fs_user_mount)[0].Paul Sokolovsky
I.e. os.listdir(...) will redirect to MP_STATE_PORT(fs_user_mount)[0].listdir(...).
2016-03-28esp8266/moduos: Use mp_rom_map_elem_t for static const dictionary.Damien George
2016-03-27esp8266: Enable FatFs support.Paul Sokolovsky
2015-05-26esp8266: Add uos moduleJosef Gajdusek
Currently implements only .uname()