You are here

Feature Request for Sync: Option to move files rather than delete them

2 posts / 0 new
Last post
1800alex@gmail.com
Offline
Last seen: 14 years 3 weeks ago
Joined: 2010-09-13 10:37
Feature Request for Sync: Option to move files rather than delete them

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);
}
}
}

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 weeks ago
Developer
Joined: 2005-12-10 15:22
Thanks

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.

Log in or register to post comments