Re: copy2 vs copy in copy_selected
- From: Stephen Kennedy <stevek gnome org>
- To: meld-list gnome org
- Subject: Re: copy2 vs copy in copy_selected
- Date: Mon, 28 Nov 2005 21:58:45 +0000 (UTC)
> While investigating merge (a beautiful piece of work, incidentally), I
> came across an aspect of its behavior that surprised me:
>
> When merging directories, it would seem natural to me that copying a
> file from one directory to the other should preserve the modification
> time on the copy. This would mean using shutil.copy2 instead of
> shutil.copy in the copy_selected method--correct? Is there a reason why
> this is not being done? The copytree method does use shutil.copy2.
Thanks Eric,
I don't know if you're talking about the code or the UI, but
thanks for the compliment :)
I can't think of a reason not to use copy2 so I've changed dirdiff
to use that instead.
Stephen.
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]