diff options
| author | 2025-08-19 00:14:30 +0700 | |
|---|---|---|
| committer | 2025-08-19 00:14:30 +0700 | |
| commit | 0b4bbb18087fe7e280a302f031e19852ef741a48 (patch) | |
| tree | 9e3fe40d0d17a022450b119f810f5405e9c51b90 /internal/client/output/local_unix.go | |
| parent | c9b2f8ca2239d64eaede7a0d755f038fe506bcca (diff) | |
| download | thumbnail-generator-0b4bbb18087fe7e280a302f031e19852ef741a48.tar.gz thumbnail-generator-0b4bbb18087fe7e280a302f031e19852ef741a48.zip | |
feat: allow multiple converters for processing
Diffstat (limited to 'internal/client/output/local_unix.go')
| -rw-r--r-- | internal/client/output/local_unix.go | 7 |
1 files changed, 2 insertions, 5 deletions
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 } |