From 3a485f6bf7839df57d0c2ed1ec4384dd9c675891 Mon Sep 17 00:00:00 2001 From: ellermister Date: Wed, 3 Mar 2021 11:15:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Trim=20=E4=B8=BA=20TrimRig?= =?UTF-8?q?ht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/filesystem/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filesystem/hooks.go b/pkg/filesystem/hooks.go index ea8ea530..062edec8 100644 --- a/pkg/filesystem/hooks.go +++ b/pkg/filesystem/hooks.go @@ -321,7 +321,7 @@ func GenericAfterUpload(ctx context.Context, fs *FileSystem) error { fs.recycleLock.Lock() go func() { defer fs.recycleLock.Unlock() - file.Name = strings.Trim(file.Name, ".tacitpart") + file.Name = strings.TrimRight(file.Name, ".tacitpart") fs.GenerateThumbnail(ctx, file) }() }