diff --git a/server/plugin/plg_backend_storj/index.go b/server/plugin/plg_backend_storj/index.go index bdc05b13..4a29b883 100644 --- a/server/plugin/plg_backend_storj/index.go +++ b/server/plugin/plg_backend_storj/index.go @@ -90,8 +90,12 @@ func (this Storj) Ls(path string) ([]os.FileInfo, error) { }) for objects.Next() { item := objects.Item() + fname := filepath.Base(item.Key) + if fname == ".file_placeholder" { + continue + } files = append(files, File{ - FName: filepath.Base(item.Key), + FName: fname, FType: func() string { if item.IsPrefix { return "directory" diff --git a/server/plugin/plg_image_thumbnail/index.go b/server/plugin/plg_image_thumbnail/index.go index 1805cf86..00977d37 100644 --- a/server/plugin/plg_image_thumbnail/index.go +++ b/server/plugin/plg_image_thumbnail/index.go @@ -124,9 +124,7 @@ func (this ThumbnailExecutable) Init() { return } } - if f.Close() != nil { - Log.Warning("plg_image_thumbnail::init::close '%s'", this.Name) - } + f.Close() } func (this *ThumbnailExecutable) verify() bool {