Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

moduos.c

Blame
    • Robert HH's avatar
      a676a41c
      esp8266/moduos.c: Addition of the rename method to module uos. · a676a41c
      Robert HH authored
      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
      a676a41c
      History
      esp8266/moduos.c: Addition of the rename method to module uos.
      Robert HH authored
      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