-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
UploadDirectory in Mirror mode occasionally deletes destination folder's entire contents #1580
Comments
Well. Until there are logs there is only one slight idea what might be going wrong: If a folder listing somehow fails, unrecognized, the mirror operation might decide that mirrored folder needs to be empty also. But without a log of a specific occurrence? Very difficult. |
It uploaded the files, recorded them as successful in the FtpResults, THEN
deleted them.
I've done a workaround - delete folder, create folder, upload in Update
mode.
…On Sat, 25 May 2024, 3:46 am FanDjango, ***@***.***> wrote:
Well. Until there are logs there is only one slight idea what might be
going wrong:
If a folder listing somehow fails, unrecognized, the mirror operation
might decide that mirrored folder needs to be empty also.
But without a log of a specific occurrence? Very difficult.
—
Reply to this email directly, view it on GitHub
<#1580 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYK2FUGF6NHBPMP5DZ57O3ZD57YLAVCNFSM6AAAAABIHBAX52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZQGEYTQMZQGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Wow. Need to check the code how that can happen. |
Code has some logging to show up what it is doing and why.
So, without a look at your code, and a log that shows this to be happening, there will be no further analysis of this issue. |
Here's my log, and this is the relevant part of the code:
The only actual extra files were "AAA New Text Document.txt" and "ZZZ/New Text Document.txt", but it identified them all as Extra (after uploading them) and so deleted them. |
I have not been able to reproduce this. Anyone else experiencing this problem? |
I'm sorry you encountered this edge case failure with the Mirror mode. I confess Mirror mode was not extensively tested. That being said, Update mode will be safer for you at this stage. The main difference between Mirror and Update is the deletion of "extra files". |
I had the same issue occur today. I have been using Update mode with no problems but tried using Mirror mode for the first time. The upload folder operation results reported that it skipped 16 files, no errors, but in fact it deleted the 16 files that were already in the target upload folder. Sorry but I don't have logs at this time. |
@BrianCook Nice to hear this confirmation. Very valuable.
Ok. |
FTP Server OS: Windows
FTP Server Type: Windows Server IIS
Client Computer OS: Windows
FluentFTP Version: 50.0.1
Framework: .NET 4.8.1
I have an app that generates around 1000 XML files (in subfolders). It then uploads a mirror to the FTP server. So, most of the time it's overwriting files with newer versions of themselves.
Occasionally, if there are files to remove, it will remove ALL files, not just the extras. The FtpResults report success.
No logs at this stage...
The text was updated successfully, but these errors were encountered: