mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:41:44 +08:00
march: Fix checking sub-directories when using --no-traverse
This commit is contained in:
parent
3a04d0d1a9
commit
6812844b3d
|
@ -423,6 +423,7 @@ func (m *March) processJob(job listDirJob) ([]listDirJob, error) {
|
|||
if recurse && job.srcDepth > 0 {
|
||||
jobs = append(jobs, listDirJob{
|
||||
srcRemote: src.Remote(),
|
||||
dstRemote: src.Remote(),
|
||||
srcDepth: job.srcDepth - 1,
|
||||
noDst: true,
|
||||
})
|
||||
|
@ -436,6 +437,7 @@ func (m *March) processJob(job listDirJob) ([]listDirJob, error) {
|
|||
recurse := m.Callback.DstOnly(dst)
|
||||
if recurse && job.dstDepth > 0 {
|
||||
jobs = append(jobs, listDirJob{
|
||||
srcRemote: dst.Remote(),
|
||||
dstRemote: dst.Remote(),
|
||||
dstDepth: job.dstDepth - 1,
|
||||
noSrc: true,
|
||||
|
|
Loading…
Reference in New Issue
Block a user