From 0b4bbb18087fe7e280a302f031e19852ef741a48 Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Tue, 19 Aug 2025 00:14:30 +0700 Subject: feat: allow multiple converters for processing --- internal/client/output/local_unix.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'internal/client/output/local_unix.go') diff --git a/internal/client/output/local_unix.go b/internal/client/output/local_unix.go index b106726..dd53e79 100644 --- a/internal/client/output/local_unix.go +++ b/internal/client/output/local_unix.go @@ -93,10 +93,6 @@ func (c *LocalUnixOutputClient) ReadMetadata(path string) (*MetadataStruct, erro stat_t := fileInfo.Sys().(*syscall.Stat_t) creationTime := time.Unix(stat_t.Ctim.Sec, stat_t.Ctim.Nsec) - misc := map[string]string{ - "Size": strconv.FormatInt(fileInfo.Size(), 10), - } - mddateOriginal := make([]byte, 0) switch c.attrMode { case "xattr": @@ -122,7 +118,8 @@ func (c *LocalUnixOutputClient) ReadMetadata(path string) (*MetadataStruct, erro ContentType: mime.TypeByExtension("." + nodeExt), FirstCreated: creationTime, LastModified: fileInfo.ModTime(), - Misc: misc, + Size: fileInfo.Size(), + Misc: map[string]string{}, }, nil } -- cgit v1.3.1+13