summaryrefslogtreecommitdiff
path: root/internal/client/input/local_unix.go
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <montferrat@tuta.io> 2025-08-19 00:14:30 +0700
committerGravatar SayaAndy <montferrat@tuta.io> 2025-08-19 00:14:30 +0700
commit0b4bbb18087fe7e280a302f031e19852ef741a48 (patch)
tree9e3fe40d0d17a022450b119f810f5405e9c51b90 /internal/client/input/local_unix.go
parentc9b2f8ca2239d64eaede7a0d755f038fe506bcca (diff)
downloadthumbnail-generator-0b4bbb18087fe7e280a302f031e19852ef741a48.tar.gz
thumbnail-generator-0b4bbb18087fe7e280a302f031e19852ef741a48.zip
feat: allow multiple converters for processing
Diffstat (limited to 'internal/client/input/local_unix.go')
-rw-r--r--internal/client/input/local_unix.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/client/input/local_unix.go b/internal/client/input/local_unix.go
index 2df3a41..27a7947 100644
--- a/internal/client/input/local_unix.go
+++ b/internal/client/input/local_unix.go
@@ -87,10 +87,6 @@ func (c *LocalUnixInputClient) ReadMetadata(path string) (*MetadataStruct, error
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),
- }
-
return &MetadataStruct{
Name: fileInfo.Name(),
StorageType: "local-unix",
@@ -98,7 +94,8 @@ func (c *LocalUnixInputClient) ReadMetadata(path string) (*MetadataStruct, error
ContentType: mime.TypeByExtension("." + nodeExt),
FirstCreated: creationTime,
LastModified: fileInfo.ModTime(),
- Misc: misc,
+ Size: fileInfo.Size(),
+ Misc: map[string]string{},
}, nil
}