mirror of
https://github.com/rclone/rclone.git
synced 2026-01-05 18:13:17 +00:00
Create fs.Directory interface and use it everywhere
This commit is contained in:
@@ -307,12 +307,7 @@ func (f *Fs) List(dir string) (entries fs.DirEntries, err error) {
|
||||
name = strings.TrimRight(name, "/")
|
||||
remote := path.Join(dir, name)
|
||||
if isDir {
|
||||
dir := &fs.Dir{
|
||||
Name: remote,
|
||||
When: timeUnset,
|
||||
Bytes: 0,
|
||||
Count: 0,
|
||||
}
|
||||
dir := fs.NewDir(remote, timeUnset)
|
||||
entries = append(entries, dir)
|
||||
} else {
|
||||
file := &Object{
|
||||
|
||||
Reference in New Issue
Block a user