Kage has asked for the wisdom of the Perl Monks concerning the following question:
File Path Example:base/ dir1/ file1.txt a.png dir2/ b.txt q.txt dir3/ a.png f.txt etc.
Essentially, I want to take the File Path list, and compare it to the Depth-Indent Tree and find what does not exist in the Depth-Indent tree, but does exist in the File Path list. For example:base/dir1/file1.txt base/dir1/a.png base/dir1/dir2/b.txt base/dir1/q.txt etc.
compared tobase/ dir1/ a.txt
would yeild that base/b.txt does not exist in the depth-indent tree. The one other stipulation is that this must be fast, and capable of handling ~12,000 entries in both the depth-indent tree and the file path list in a timely manner. Any ideas? Thanks for any help!base/ base/dir1/ base/dir1/a.txt base/b.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing depth-indent tree to full-paths
by jdporter (Paladin) on Feb 13, 2009 at 03:47 UTC | |
|
Re: Comparing depth-indent tree to full-paths
by GrandFather (Saint) on Feb 13, 2009 at 03:50 UTC | |
|
Re: Comparing depth-indent tree to full-paths
by ELISHEVA (Prior) on Feb 13, 2009 at 07:14 UTC |