fix (storj): convention for folder

This commit is contained in:
Mickael Kerjean 2022-12-21 00:25:37 +11:00
parent 1f9a30c462
commit d86b779450
2 changed files with 6 additions and 4 deletions

View file

@ -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"

View file

@ -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 {