mirror of
https://github.com/rclone/rclone.git
synced 2025-06-20 11:47:57 +02:00
jottacloud: fix bug in --fast-list handing of empty folders - fixes #2650
This commit is contained in:
parent
15ce0ae57c
commit
935b7c1c0f
@ -464,12 +464,12 @@ func (f *Fs) listFileDir(remoteStartPath string, startFolder *api.JottaFolder, f
|
|||||||
if folder.Deleted {
|
if folder.Deleted {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
folderPath := path.Join(folder.Path, folder.Name)
|
folderPath := restoreReservedChars(path.Join(folder.Path, folder.Name))
|
||||||
remoteDirLength := len(folderPath) - pathPrefixLength
|
folderPathLength := len(folderPath)
|
||||||
var remoteDir string
|
var remoteDir string
|
||||||
if remoteDirLength > 0 {
|
if folderPathLength > pathPrefixLength {
|
||||||
remoteDir = restoreReservedChars(folderPath[pathPrefixLength+1:])
|
remoteDir = folderPath[pathPrefixLength+1:]
|
||||||
if remoteDirLength > startPathLength {
|
if folderPathLength > startPathLength {
|
||||||
d := fs.NewDir(remoteDir, time.Time(folder.ModifiedAt))
|
d := fs.NewDir(remoteDir, time.Time(folder.ModifiedAt))
|
||||||
err := fn(d)
|
err := fn(d)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user