# Breaking changes

**URL:** <https://forum.rclone.org/t/breaking-changes/27130>\
**Category:** Dev Discussions\
**Created:** [October 24, 2021, 7:58pm UTC](https://forum.rclone.org/t/breaking-changes/27130 "2021-10-24T19:58:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavideRossi](https://forum.rclone.org/user_avatar/forum.rclone.org/daviderossi/32/7900_2.png) [@DavideRossi](https://forum.rclone.org/u/DavideRossi)\
**Post date:** [October 24, 2021, 7:58pm UTC](https://forum.rclone.org/t/breaking-changes/27130/1 "2021-10-24T19:58:03Z")

</div>

[UpBack](https://github.com/DavideRossi/upback) relies on rclone to synchronize files.  
I just discovered that some time ago, a new switch has been added (--create-empty-src-dirs) that changes the default semantics (which is a breaking change).  
While I can spot the commit that introduced it in the git repo I have not found a way to understand the version of rclone in which the change took place. Can somebody help me with that?  
I also have a more general concern: how many more breaking changes have been introduced? Is there a list of them?

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [October 24, 2021, 9:46pm UTC](https://forum.rclone.org/t/breaking-changes/27130/2 "2021-10-24T21:46:14Z")

</div>

All the release info is here:

> **[Releases](https://forum.rclone.org/c/releases/11)**
>
> Announcements of new releases will go here.

Each release has notes, I tend to read them before I upgrade so I don't have anything break for me.

> [@DavideRossi](#):
>
> I also have a more general concern: how many more breaking changes have been introduced? Is there a list of them?

I'd say generally, there is a good effort to not break things but it does happen from time to time. All changes / features etc are listed on the github.

The change was done here:

> <https://github.com/rclone/rclone/pull/3009>
>
> \#### What is the purpose of this change?
> 
> This PR adds the \`--create-empty-src…-dirs\` flag to the copy, sync and move commands.
> 
> \#### Was the change discussed in an issue or in the forum before?
> 
> This was discussed in #2869 
> 
> \#### Checklist
> 
> \- \[x\] I have read the \[contribution guidelines\](https://github.com/ncw/rclone/blob/master/CONTRIBUTING.md#submitting-a-pull-request).
> \- \[x\] I have added tests for all changes in this PR if appropriate.
> \- \[x\] I have added documentation for the changes if appropriate.
> \- \[x\] All commit messages are in \[house style\](https://github.com/ncw/rclone/blob/master/CONTRIBUTING.md#commit-messages).
> \- \[x\] I'm done, this Pull Request is ready for review :-)

What is the breaking part of the change as I'm not following that bit as it's a new flag as I don't believe any mechanics were changed?

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [October 25, 2021, 7:10am UTC](https://forum.rclone.org/t/breaking-changes/27130/3 "2021-10-25T07:10:32Z")

</div>

> [@Animosity022](#):
>
> I don't believe any mechanics were changed

Actually there was a change. The creation of empty directories on the `dst` used to happen by default before this change and now it happens only if the flag was specified:

> <https://github.com/rclone/rclone/pull/3009/files#diff-4dbf23008061a479db91ae57841d15a25dd832da30fd9e536cd5de95f2efd1beR694>
>
> \#### What is the purpose of this change?
> 
> This PR adds the \`--create-empty-src…-dirs\` flag to the copy, sync and move commands.
> 
> \#### Was the change discussed in an issue or in the forum before?
> 
> This was discussed in #2869 
> 
> \#### Checklist
> 
> \- \[x\] I have read the \[contribution guidelines\](https://github.com/ncw/rclone/blob/master/CONTRIBUTING.md#submitting-a-pull-request).
> \- \[x\] I have added tests for all changes in this PR if appropriate.
> \- \[x\] I have added documentation for the changes if appropriate.
> \- \[x\] All commit messages are in \[house style\](https://github.com/ncw/rclone/blob/master/CONTRIBUTING.md#commit-messages).
> \- \[x\] I'm done, this Pull Request is ready for review :-)

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [October 25, 2021, 7:55am UTC](https://forum.rclone.org/t/breaking-changes/27130/4 "2021-10-25T07:55:19Z")

</div>

Hi @DavideRossi

This is actually an excellent example to illustrate how difficult it is to determine when something is a newly introduced bug, a bug fix or a breaking change.

The above mentioned [#2869](https://github.com/rclone/rclone/issues/2869) (add --create-empty-src-dirs) was a fix/improvement to [#1837](https://github.com/rclone/rclone/issues/1837) (fix empty folders not copied). There are therefore many possible scenarios.

If you consider the documentation to be the baseline then:

- [#1837](https://github.com/rclone/rclone/issues/1837) was a fix if the documentation at that point in time gave the impression that rclone would copy everything (including empty folders), and then [#2869](https://github.com/rclone/rclone/issues/2869) becomes a breaking change.

- [#1837](https://github.com/rclone/rclone/issues/1837) was a breaking change if the documentation at that point in time gave the impression that rclone focused on files and therefore didn’t copy empty folders, and then [#2869](https://github.com/rclone/rclone/issues/2869) becomes a fix of a (breaking) bug.

If you consider the current behavior to be the baseline then:

- any change or bug fix is a breaking change

---

<div class="post-metadata">

**Author:** ![DavideRossi](https://forum.rclone.org/user_avatar/forum.rclone.org/daviderossi/32/7900_2.png) [@DavideRossi](https://forum.rclone.org/u/DavideRossi)\
**Post date:** [October 25, 2021, 10:44am UTC](https://forum.rclone.org/t/breaking-changes/27130/5 "2021-10-25T10:44:38Z")

</div>

Things are a little different, to my understaning. [#1837](https://github.com/rclone/rclone/issues/1837) (fix empty folders not copied) was about the fact that the stated behavior was not always respected.  
In most cases, in fact, rclone behaved as documented (proof: my test cases regarding this aspect were passing).  
The fix would have simply been to make sure that empty folders are always copied.  
But then it was decided to fix the bug while introducing a change in the default behavior, I think due to the fact that the previous default behavior was problematic because of some backends not supporting empty directories.  
I'm not complaining, at times you realize that a breaking change is the lesser evil.  
I'm only trying to understand if, for example, I can relay on semantic versioning when breaking changes are introduced, so that I can tell my users: rclone 1.56.x is supported.  
Was that the case? No idea, I still do not know in which version the change appeared.

---

<div class="post-metadata">

**Author:** ![albertony](https://forum.rclone.org/user_avatar/forum.rclone.org/albertony/32/8586_2.png) [@albertony](https://forum.rclone.org/u/albertony)\
**Post date:** [October 25, 2021, 10:53am UTC](https://forum.rclone.org/t/breaking-changes/27130/6 "2021-10-25T10:53:44Z")

</div>

> [@DavideRossi](#):
>
> I still do not know in which version the change appeared.

1.56.2, judging from these two commits on master:

> <https://github.com/rclone/rclone/commit/0c6f14c69437ea614e7441455ae120bf8f2ffaa9>
>
> Sync/copy now only creates empty directories when they don't exist on the remote… (--create-empty-src-dirs flag) - fixes #2800

> <https://github.com/rclone/rclone/commit/1b52f8d2a5f95905e3ce9b6e843e6242cae8683c>

---

<div class="post-metadata">

**Author:** ![DavideRossi](https://forum.rclone.org/user_avatar/forum.rclone.org/daviderossi/32/7900_2.png) [@DavideRossi](https://forum.rclone.org/u/DavideRossi)\
**Post date:** [October 25, 2021, 10:55am UTC](https://forum.rclone.org/t/breaking-changes/27130/7 "2021-10-25T10:55:34Z")

</div>

Good. I mean bad. Now I know but we have a problem with semantic versioning.

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [October 25, 2021, 11:22am UTC](https://forum.rclone.org/t/breaking-changes/27130/8 "2021-10-25T11:22:53Z")

</div>

> [@DavideRossi](#):
>
> ... we have a problem with semantic versioning.

I somehow cannot understand your issue or what you are missing.

I see this:

> ## v1.47.0 - 2019-04-13
> 
> - ...
> - Add `--create-empty-src-dirs` flag and default to not creating empty dirs (ishuah)

here: [https://rclone.org/changelog/#v1-47-0-2019-04-13](https://rclone.org/changelog/#v1-47-0-2019-04-13)

What are you missing?

---

<div class="post-metadata">

**Author:** ![albertony](https://forum.rclone.org/user_avatar/forum.rclone.org/albertony/32/8586_2.png) [@albertony](https://forum.rclone.org/u/albertony)\
**Post date:** [October 25, 2021, 11:29am UTC](https://forum.rclone.org/t/breaking-changes/27130/9 "2021-10-25T11:29:51Z")

</div>

> 1.56.2, judging from these two commits on master

Sorry, I read the commit info wrong - the commits came with version 1.47.0! 😪 Thanks for correcting!

So: Introduced with new minor release, documented in release notes. 👍

> What are you missing?

Speaking for myself: ☕ ☕ ☕

---

<div class="post-metadata">

**Author:** ![DavideRossi](https://forum.rclone.org/user_avatar/forum.rclone.org/daviderossi/32/7900_2.png) [@DavideRossi](https://forum.rclone.org/u/DavideRossi)\
**Post date:** [October 25, 2021, 11:50am UTC](https://forum.rclone.org/t/breaking-changes/27130/10 "2021-10-25T11:50:10Z")

</div>

@Ole there's nothing I'm missing, I was commenting on the fact that a breaking change was introduced between patch releases, which later turned out not to be the case.

---

<div class="post-metadata">

**Author:** ![Ole](https://forum.rclone.org/user_avatar/forum.rclone.org/ole/32/9242_2.png) [@Ole](https://forum.rclone.org/u/Ole)\
**Post date:** [October 25, 2021, 12:36pm UTC](https://forum.rclone.org/t/breaking-changes/27130/11 "2021-10-25T12:36:28Z")

</div>

Great, and your original issue was that you couldn’t find the changelog. Correct?

Tip:

You can subscribe to release info by clicking the bell in the upper right corner here: [https://forum.rclone.org/c/releases/11](https://forum.rclone.org/c/releases/11)

then you get a mail notification like this on every release:

> Rclone 1.56.2 has been released. Find it here [Rclone downloads](https://rclone.org/downloads/) or use `rclone selfupdate` to upgrade.
> 
> This is a bugfix release containing a couple of little fixes and a security fix.
> 
> Unfortunately in v1.56.0 and v1.56.1 `rclone serve http` was serving everything without authorization, even if authorization was configured. This bug was introduced as part of an ongoing refactor of the HTTP servers in rclone. None of the other servers (`webdav`, `sftp`, etc) are affected. Many apologies for this bug.
> 
> ## v1.56.2 - 2021-10-01
> 
> [See commits](https://github.com/rclone/rclone/compare/v1.56.1...v1.56.2)
> 
> - Bug Fixes
> - serve http: Re-add missing auth to http service (Nolan Woods)
> - build: Update [golang.org/x/sys](http://golang.org/x/sys) to fix crash on macOS when compiled with go1.17 (Herby Gillot)
> 
> - FTP
> - Fix deadlock after failed update when concurrency=1 (Ivan Andreev)

Source: [https://forum.rclone.org/t/rclone-1-56-2-release/26786](https://forum.rclone.org/t/rclone-1-56-2-release/26786)

The entire changelog can be found in the drop down under documents on [https://rclone.org/](https://rclone.org/) or near the bottom of readme.txt and readme.html included in the release zip.

---

<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:** [December 25, 2021, 8:36am UTC](https://forum.rclone.org/t/breaking-changes/27130/12 "2021-12-25T08:36:49Z")

</div>

Closed on December 25, 2021, 8:36am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
