forked from TrueCloudLab/rclone
march: Fix checking sub-directories when using --no-traverse
This commit is contained in:
parent
3a04d0d1a9
commit
6812844b3d
1 changed files with 2 additions and 0 deletions
|
@ -423,6 +423,7 @@ func (m *March) processJob(job listDirJob) ([]listDirJob, error) {
|
||||||
if recurse && job.srcDepth > 0 {
|
if recurse && job.srcDepth > 0 {
|
||||||
jobs = append(jobs, listDirJob{
|
jobs = append(jobs, listDirJob{
|
||||||
srcRemote: src.Remote(),
|
srcRemote: src.Remote(),
|
||||||
|
dstRemote: src.Remote(),
|
||||||
srcDepth: job.srcDepth - 1,
|
srcDepth: job.srcDepth - 1,
|
||||||
noDst: true,
|
noDst: true,
|
||||||
})
|
})
|
||||||
|
@ -436,6 +437,7 @@ func (m *March) processJob(job listDirJob) ([]listDirJob, error) {
|
||||||
recurse := m.Callback.DstOnly(dst)
|
recurse := m.Callback.DstOnly(dst)
|
||||||
if recurse && job.dstDepth > 0 {
|
if recurse && job.dstDepth > 0 {
|
||||||
jobs = append(jobs, listDirJob{
|
jobs = append(jobs, listDirJob{
|
||||||
|
srcRemote: dst.Remote(),
|
||||||
dstRemote: dst.Remote(),
|
dstRemote: dst.Remote(),
|
||||||
dstDepth: job.dstDepth - 1,
|
dstDepth: job.dstDepth - 1,
|
||||||
noSrc: true,
|
noSrc: true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue