From f35ddcbd4de7d9148fe6bea344260d6e3ea8be1d Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 19 Aug 2024 21:50:01 +0200 Subject: [PATCH] chore: comments and longer changelog --- CHANGELOG.md | 2 +- files/file.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7bbdcac9..25f652999 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ The following emojis are used to highlight certain changes: ### Added -- support UnixFS 1.5 file mode and modification times +- `files`, `ipld/unixfs`, `mfs` and `tar` now support optional UnixFS 1.5 mode and modification time metadata ### Changed diff --git a/files/file.go b/files/file.go index 2fd907931..e2ece2862 100644 --- a/files/file.go +++ b/files/file.go @@ -18,10 +18,11 @@ var ( type Node interface { io.Closer - // Mode returns the file's mode. + // Mode returns the mode. + // Optional, if unknown/unspecified returns zero. Mode() os.FileMode - // ModTime returns the file's last modification time. If the last + // ModTime returns the last modification time. If the last // modification time is unknown/unspecified ModTime returns zero. ModTime() (mtime time.Time)