Wrong detected counterpart of file
Argimko opened this issue · 1 comments
Hi Stefan, thank you for fixing #105 - it works well now! :)
I have found another issue, I think.
I have folders:
D:\Desktop\src
with test.png.cryptsync
file
D:\Desktop\dst
is empty
Now I want to mirror files: from
-> to
with pass, and skip encrypting *.cryptsync
. So I run:
"%PROGRAMW6432%\CryptSync\CryptSync.exe" /src:"D:\Desktop\src" /dst:"D:\Desktop\dst" /cpy:"*.cryptsync" /pw:"1" /mirror /logpath:"D:\Desktop\log1.txt"
(*)
Please, follow this:
- Make sure
log1.txt
does not exists or empty - Put
test.png.cryptsync
tosrc
folder. Folderdst
is empty - Run cmd as above (*)
- You will see that file correctly copied:
D:\Desktop\src\test.png.cryptsync
->D:\Desktop\dst\test.png.cryptsync
- Keep
log1.txt
unchanged - Run cmd as above (*) second time
- Now you will see the issue: for some reason file
D:\Desktop\dst\test.png.cryptsync
was removed.
My log file is:
Starting CryptSync
syncing folder orig "D:\Desktop\src" with crypt "D:\Desktop\dst"
settings: encrypt names: no, use 7z: no, use GPG: no, use FAT workaround: no, sync deleted: yes, reset archive attr: no
copy file \\?\D:\Desktop\src\test.png.cryptsync to \\?\D:\Desktop\dst\test.png.cryptsync
finished syncing folder orig "D:\Desktop\src" with crypt "D:\Desktop\dst"
exiting CryptSync
Starting CryptSync
syncing folder orig "D:\Desktop\src" with crypt "D:\Desktop\dst"
settings: encrypt names: no, use 7z: no, use GPG: no, use FAT workaround: no, sync deleted: yes, reset archive attr: no
copy file \\?\D:\Desktop\src\test.png.cryptsync to \\?\D:\Desktop\dst\test.png.cryptsync
counterpart of file test.png does not exist in src folder, delete file
finished syncing folder orig "D:\Desktop\src" with crypt "D:\Desktop\dst"
exiting CryptSync
The issue reproduced with CryptSync v1.4.4.462 and with not released master branch with the last commit 56efb2e.
Thank you!
the problem here is that you want to copy files with the .cryptsync extension. That extension is used for the encrypted files.
As soon as the file test.png.cryptsync was copied to the dest folder, it get's treated as an encrypted file for test.png.
Just don't mess around with .cryptsync files.