# Check with "--one-way" flag should not traverses all destination directories

**URL:** <https://forum.rclone.org/t/check-with-one-way-flag-should-not-traverses-all-destination-directories/13263>\
**Category:** Suspected Bug\
**Created:** [December 7, 2019, 9:24am UTC](https://forum.rclone.org/t/check-with-one-way-flag-should-not-traverses-all-destination-directories/13263 "2019-12-07T09:24:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![derrod](https://forum.rclone.org/user_avatar/forum.rclone.org/derrod/32/4434_2.png) [@derrod](https://forum.rclone.org/u/derrod)\
**Post date:** [December 7, 2019, 9:24am UTC](https://forum.rclone.org/t/check-with-one-way-flag-should-not-traverses-all-destination-directories/13263/1 "2019-12-07T09:24:12Z")

</div>

(I am not entirely sure whether this should be a feature request or be considered a bug/issue)

I have several directories in my source, let's call them `b/` and `d/`, the destination (remote) has the directories `a/`, `b/`,`c/`, and `d/`.

Currently when running `rclone check --one-way src: dest:` rclone will also retrieve the contents of `a/` and `c/` on the destination despite them not being present in the source and thus irrelevant for a one-way check.

This is somehat of an issue because it can slow the process down significantly if many files and subdirectories are present in those paths as well as incur additional costs with remotes such as Backblaze B2 that charge for API requests past a certain limit.

I believe operations such as "copy" already only traverse directories that are present in both, so that behaviour should be mirrored here.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [December 7, 2019, 1:30pm UTC](https://forum.rclone.org/t/check-with-one-way-flag-should-not-traverses-all-destination-directories/13263/2 "2019-12-07T13:30:28Z")

</div>

I think this is a missed optimization opportunity.

Luckily it is is extremely easy to add!

Try this

[https://beta.rclone.org/branch/v1.50.2-084-g50bb9b7b-fix-check-beta/](https://beta.rclone.org/branch/v1.50.2-084-g50bb9b7b-fix-check-beta/) (uploaded in 15-30 mins)

---

<div class="post-metadata">

**Author:** ![derrod](https://forum.rclone.org/user_avatar/forum.rclone.org/derrod/32/4434_2.png) [@derrod](https://forum.rclone.org/u/derrod)\
**Post date:** [December 7, 2019, 2:07pm UTC](https://forum.rclone.org/t/check-with-one-way-flag-should-not-traverses-all-destination-directories/13263/3 "2019-12-07T14:07:37Z")

</div>

Works great 👍  
With the test build my test finished in 12 seconds, whereas the stable release version sits idle because it's being rate limited.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [December 8, 2019, 12:26pm UTC](https://forum.rclone.org/t/check-with-one-way-flag-should-not-traverses-all-destination-directories/13263/4 "2019-12-08T12:26:30Z")

</div>

Thanks for testing

I've merged this to master now which means it will be in [the latest beta](https://beta.rclone.org) in 15-30 mins and released in v1.51

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 4, 2020, 12:59am UTC](https://forum.rclone.org/t/check-with-one-way-flag-should-not-traverses-all-destination-directories/13263/5 "2020-03-04T00:59:32Z")

</div>

Closed on March 4, 2020, 12:59am UTC


