Would it be possible to add an option to specify a "trash" folder where deleted items could be moved? I think this would make this tool very powerful, because I like to backup my files daily and having an option like this could prevent those accidental deletions by just going to your "trash" folder and getting it out. Likewise it would be easy enough to manually clean your trash every week or so.
I'd love to help out on the development, I just barely have the time anymore.
Perhaps something like:
void SyncFiles::OnNotSourceDestFile(const wxString &path){
wxString source = sourceroot + wxFILE_SEP_PATH + path;
wxString dest = destroot + wxFILE_SEP_PATH + path;
if(data->GetFunction() == _("Mirror") || data->GetFunction() == _("Clean")){
if(!data->GetRules()->ShouldExclude(dest, false)){
if(move files, don't delete them is true){
CopyFile(dest, trash folder location);
}
RemoveFile(dest);
}
}
else if(data->GetFunction() == _("Equalise")){
if(!data->GetRules()->ShouldExclude(dest, false)){
CopyIfNeeded(dest, source);
}
}
}
for the request, you can already check the option to delete stuff to the recycle bin which probably does most of what you want. It is a little trickier to add a custom trash location, not the logic but fitting it in the UI, I will have a think about this and see what I can do for a later release.