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

feat: support UnixFS 1.5 file mode and modification times #653

Merged
merged 21 commits into from
Aug 20, 2024
Merged

Commits on Aug 6, 2024

  1. feat: support UnixFS 1.5 file mode and modification times

    Replaces PR #34 written by @kstuart
    
    Adds support for storing and retrieving file mode and last modification time.
    
    Support added to:
    - [X] Files
    - [X] LinkFiles
    - [X] Webfiles
    - [X] Directories
    - [X] Tar Archives
    
    When the TAR archive (headers) include a file mode or modification time, the extractor will restore that metadata when supported for the underlying filesystem.
    
    The Golang runtime currently does not support changing the times on a symlink, for Linux and some BSDs a custom solution has been implemented, for Darwin this is not the case so when copying a symlink to the filesystem the last modification time is not updated. Since for concrete files and directories stored modes and modification times are faithfully restored to the filesystem this should not be a breaking issue, a similar solution to that implemented for Linux/BSDs is likely implementable by a developer with access to a Darwin platform.
    
    Replaces PRs:
    - ipfs/go-ipfs-files#31
    - ipfs/tar-utils#11
    - #34
    
    Relates to ipfs/kubo#6920
    gammazero committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    db9037a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5124433 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    312a27f View commit details
    Browse the repository at this point in the history
  4. - Add NewUnixfsFileWithStat

    - Fix windows test
    gammazero committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    7371b76 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4f392d5 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. Add comment

    gammazero committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    4120ad4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da4b1fe View commit details
    Browse the repository at this point in the history
  3. Fix error message

    gammazero committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    23407d5 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. format comments

    gammazero committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    66d0d88 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

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

Commits on Aug 12, 2024

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

Commits on Aug 13, 2024

  1. feat: Support UnixFS mode and modification times in ipld dag and mfs (#…

    …658)
    
    * feat: Support UnixFS mode and modification times in ipld dag and mfs
    
    Adds support for storing and retrieving file mode and last modification time.
    
    Support added to:
    - Files
    - LinkFiles
    - Webfiles
    - Directories
    
    Tar archives are supported by the parent branch.
    gammazero authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    1062062 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. Configuration menu
    Copy the full SHA
    91e0954 View commit details
    Browse the repository at this point in the history
  2. Update required go version

    gammazero committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    b27ba95 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. chore: go mod tidy

    lidel committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    1e7b853 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f35ddcb View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Fix mfs touch and chmod

    Fixes #660
    gammazero committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    f4259d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76a83de View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a23fa5b View commit details
    Browse the repository at this point in the history
  4. mod tidy examples

    gammazero committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    95a5c30 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b2660c5 View commit details
    Browse the repository at this point in the history