-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--b2-versions should not treat file names starting with periods as extensions #5244
Comments
Well spotted. It should be quite easy to fix if you want to have a go? |
Alas, I have not yet learned to Go, and as much as I would like to, I don't have the time to do so on personal time and there's nothing to justify doing it on work time. While it would probably indeed be "quite easy" for a Go programmer, I can't afford the time to do the necessary ramp-up just to fix this bug. ;-) |
That is fine! I've attempted to fix this here - can you give it a go? v1.56.0-beta.5411.5ef08186d.fix-5244-versions on branch fix-5244-versions (uploaded in 15-30 mins) |
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.56 |
Thanks. Sorry I wasn't able to test. It was in my queue but I just never managed to get it all the way to the top. :-/ |
The associated forum post URL from
https://forum.rclone.org
n/a
What is the problem you are having with rclone?
The
--b2-versions
logic inrclone
tries to be smart about moving the file extensions of the names of previous versions of files to the end of the file name, after the version string. For example:This doesn't quite have the correct behavior for dot-files:
If the file name starts with a period, then that period should not be considered the start of an extension.
What is your rclone version (output from
rclone version
)Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
Ubuntu 21.04 amd64
Which cloud storage system are you using? (e.g. Google Drive)
B2
The command you were trying to run (e.g.
rclone copy /tmp remote:tmp
)See above.
A log from the command with the
-vv
flag (e.g. output fromrclone -vv copy /tmp remote:tmp
)The text was updated successfully, but these errors were encountered: