mirror of
https://github.com/minio/mc.git
synced 2025-11-16 11:02:34 +03:00
fix dir listing bug and find style output
This commit is contained in:
@@ -119,15 +119,13 @@ func (f *fsClient) List() (items []*client.Item, err error) {
|
||||
}
|
||||
return err // fatal
|
||||
}
|
||||
if fi.IsDir() {
|
||||
return nil // not a fs skip
|
||||
}
|
||||
// trim f.path
|
||||
item := &client.Item{
|
||||
Name: strings.TrimPrefix(fp, f.path+string(filepath.Separator)),
|
||||
// Name: strings.TrimPrefix(fp, f.path+string(filepath.Separator)),
|
||||
Name: fp,
|
||||
Time: fi.ModTime(),
|
||||
Size: fi.Size(),
|
||||
}
|
||||
|
||||
items = append(items, item)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user