summaryrefslogtreecommitdiff
path: root/esp8266/moduos.c
AgeCommit message (Collapse)Author
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-05-10ports: Add ilistdir in uos module.Damien George
2017-02-13esp8266/moduos: Populate release field of uname in case it was GC'd.Damien George
2017-01-27esp8266: Change to use new generic VFS sub-system.Damien George
The VFS sub-system supports mounting of an arbitrary number of devices (limited only by available RAM). The internal flash is now mounted at "/flash".
2017-01-27extmod: Rename vfs_fat_file.h to vfs_fat.h.Damien George
And move declaration of mp_fat_vfs_type to this file.
2016-10-07esp8266: Use mp_raise_OSError helper function.Damien George
2016-10-03esp8266/moduos: Move stat/statvfs funcs to sit within #if VFS guard.Damien George
2016-09-27esp8266: Add uos.statvfs() to get filesystem status.Alex March
2016-09-22all: Remove 'name' member from mp_obj_module_t struct.Damien George
One can instead lookup __name__ in the modules dict to get the value.
2016-08-26esp8266/modous: Add os.umount method to unmount a filesystem.Radomir Dopieralski
This is an object-oriented approach, where uos is only a proxy for the methods on the vfs object. Some internals had to be exposed (the STATIC keyword removed) for this to work. Fixes #2338.
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()