mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 20:24:14 +08:00
5ca61ab705
Improved detection of false positive change conflicts (identical files are now left alone instead of renamed) https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=1.%20Identical%20files%20should%20be%20left%20alone%2C%20even%20if%20new/newer/changed%20on%20both%20sides
44 lines
2.0 KiB
Plaintext
44 lines
2.0 KiB
Plaintext
test extended-filenames
|
|
# Tests with several files and a subdirectory
|
|
# that contain UTF-8 code points or whitespace.
|
|
#
|
|
# Notes:
|
|
# - All rclone backends including local return "\n" aka {eol} in file names
|
|
# as a pseudographic unicode glyph, thus we don't see `\n` in golden logs.
|
|
# - File names with "\t" aka {tab} pass with local, dropbox, and drive
|
|
# backends, but fail with FTP. As a workaround, the test currently uses
|
|
# `name{spc}with{eol}white{spc}space` instead of
|
|
# `name{tab}with{eol}white{spc}space`.
|
|
|
|
test initial bisync
|
|
bisync resync
|
|
|
|
test place a newer files on both paths
|
|
# force specific modification time since file time is lost through git
|
|
touch-glob 2001-01-02 {datadir/} file1.txt
|
|
touch-glob 2001-01-02 {datadir/} file2.txt
|
|
copy-as {datadir/}file1.txt {path2/} New_top_level_mañana_funcionará.txt
|
|
copy-as {datadir/}file1.txt {path2/} file_enconde_mañana_funcionará.txt
|
|
copy-as {datadir/}file1.txt {path1/} filename_contains_ࢺ_p1m.txt
|
|
copy-as {datadir/}file1.txt {path2/} Русский.txt
|
|
copy-as {datadir/}file1.txt {path1/} file1_with{spc}white{spc}space.txt
|
|
copy-as {datadir/}file1.txt {path1/}subdir_with_ࢺ_ test.txt
|
|
copy-as {datadir/}file1.txt {path1/}subdir_with_ࢺ_ mañana_funcionará.txt
|
|
copy-as {datadir/}file1.txt {path1/}subdir_with_ࢺ_ file_with_測試_.txt
|
|
copy-as {datadir/}file1.txt {path2/}subdir_with_ࢺ_ filename_contains_ࢺ_p2s.txt
|
|
copy-as {datadir/}file1.txt {path2/}subdir{spc}with{eol}white{spc}space.txt file2{spc}with{eol}white{spc}space.txt
|
|
copy-as {datadir/}file1.txt {path2/}subdir_rawchars_{chr:19}_{chr:81}_{chr:fe} file3_{chr:19}_{chr:81}_{chr:fe}
|
|
|
|
test place a new file on both paths
|
|
copy-as {datadir/}file2.txt {path2/}subdir_with_ࢺ_ filechangedbothpaths_ࢺ_.txt
|
|
touch-glob 2001-01-03 {datadir/} file1.txt
|
|
copy-as {datadir/}file1.txt {path1/}subdir_with_ࢺ_ filechangedbothpaths_ࢺ_.txt
|
|
|
|
test delete files on both paths
|
|
delete-file {path2/}filename_contains_ࢺ_.txt
|
|
delete-file {path2/}subdir_with_ࢺ_/filename_contains_ě_.txt
|
|
delete-file {path1/}Русский.txt
|
|
|
|
test bisync run
|
|
bisync
|