Re: Tree Recursion for Copy Paste overwrite
Peter Osucha <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.advanced |
|---|---|
| Message-ID | <[email protected]> |
Sorry, Mike, I wasn't very clear with my issue. In Windows Explorer, suppose I have a tree structure with the folders 'MyFolderA' and 'F1' at the same level. Suppose that 'MyFolderA' also has a folder underneath it called 'F1'. If I copy the folder 'F1' that is at the level 'MyFolderA' into 'MyFolderA', I get a message that the folder 'F1' already exists asking me if I'd like to overwrite any files or folders underneath the existing 'MyFolderA-->F1' with the ones I am pasting. What I can't figure out is how to do this 'overwriting' from a 'travel through the treenode' standpoint... Peter -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[email protected]] On Behalf Of Mike Andrews Sent: Thursday, February 12, 2009 4:29 PM To: [email protected] Subject: Re: [ADVANCED-DOTNET] Tree Recursion for Copy Paste overwrite I'm not sure I understand the question. When you paste a new folder in explorer that you have copied from a previous location, it renames the top-level folder so that it is unique with a "Copy of XXXX" folder. On Thu, Feb 12, 2009 at 3:24 PM, Peter Osucha <[email protected]>wrote: > Hello, > > I am trying to implement a copy-n-paste mechanism for a tree structure > similar to what Windows Explorer does. The case I can't figure out how > to program is that in which I am copying a node (and its children) > underneath a node and wanting to make sure there are no duplicates > (again, the same way Windows Explorer 'forces' files to be overwritten > if they have duplicate names). > > For the life of me, I can't figure out how to do this and googling has > yet to turn up an answer. > > Help (please)? > > Peter =================================== View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives