diff options
author | Robert HH <robert@hammelrath.com> | 2016-05-16 10:17:11 +0200 |
---|---|---|
committer | Robert HH <robert@hammelrath.com> | 2016-05-16 13:19:13 +0200 |
commit | a676a41cb7f50d0aab4230be19e9b2bb508f754e (patch) | |
tree | a6d91ac350489c4692e9967e9e91718607fa262d /esp8266/scripts/port_diag.py | |
parent | afce978aca77805e84a2442c93c26dab045784f8 (diff) | |
download | micropython-a676a41cb7f50d0aab4230be19e9b2bb508f754e.tar.gz micropython-a676a41cb7f50d0aab4230be19e9b2bb508f754e.zip |
esp8266/moduos.c: Addition of the rename method to module uos.
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
Diffstat (limited to 'esp8266/scripts/port_diag.py')
0 files changed, 0 insertions, 0 deletions