mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-26 18:25:29 +01:00
fix (storj): convention for folder
This commit is contained in:
parent
1f9a30c462
commit
d86b779450
2 changed files with 6 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue