Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fileCreation/getCreation create-time accessors #7000

Merged
merged 12 commits into from
Feb 22, 2020

Commits on Jan 8, 2020

  1. Add fileCreation/getCreation create-time accessors

    For SDFS and LittleFS, enable a creation time accessor for files and Dir
    iterators, similar to the existing fileTime/getLastWrite calls.
    
    Remove spurious Dir::getLastWrite method (the proper and only documented
    way is really Dir::fileTime).
    
    Update json to point to new mklittlefs which copies the creation date of
    files to the image.
    
    Fixes esp8266#6992
    earlephilhower committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    cafc27f View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2020

  1. Remove malloc(), use stack vars for temp names

    LFS filenames are limited in size and generally very small.  Use a stack
    variable instead of a dynamic allocation when performing full-path
    computations.
    earlephilhower committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    39ecd9c View commit details
    Browse the repository at this point in the history
  2. Replace "Creation" w/"CreationTime" in FS accessor

    Per review, `getCreation` -> `getCreationTime`, `fileCreation` ->
    `fileCreationTime`.
    
    The names `fileTime()` and `getLastWrite()` are inherited from ESP32
    implementation and unchanged.
    earlephilhower committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    b06959f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    498d950 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2020

  1. Enable SdFat's sateTime callback for timestamping

    SdFat requries the dateTimeCallback call (global for everything) to
    update dates and times on created files.
    
    Because the callback signature doesn't have space for us to provide
    any parameters, we cannot get the the File, Dir, or FS object's
    dateTimeCB member.  Instead, just go with `time(null)` as the callback
    function which is right in all but the most esoteric cases.
    earlephilhower committed Jan 19, 2020
    Configuration menu
    Copy the full SHA
    76a0a1d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61a0dc8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4fb8bfe View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2020

  1. Configuration menu
    Copy the full SHA
    9db7e78 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2020

  1. Configuration menu
    Copy the full SHA
    454feeb View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2020

  1. Configuration menu
    Copy the full SHA
    3a0dc9b View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2020

  1. Configuration menu
    Copy the full SHA
    01c7554 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7318f90 View commit details
    Browse the repository at this point in the history