Skip to content

Suggestion: Add OverwriteIfNotEqual to FtpLocalExists for safer mirroring #1728

@avsimian

Description

@avsimian

I am using the DownloadDirectory function with FtpFolderSyncMode.Mirror. It works well, but I encountered a problem (or maybe I missed something)

My use case is to mirror a directory from the FTP server, ensuring that when a file with the same name changes remotely, the local file is overwritten. However, the existing FtpLocalExists.Resume (Append) option only appends extra bytes to the local file, which can result in corrupted files.

Would implementing an OverwriteIfNotEqual option be useful for this scenario? Or is there an alternative approach that I might have missed?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions