Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Maybe someone can get a better approach than mine.
Andy Knipp
Here is the situation:
I have ~ 15,000 files in TS. Most of which are referenced by a DCR.
DCR1 -> file1
DCR2 -> file2
file3
DCR4 -> file4
So what I want to do is find all of files not referenced by DCRs.
First thought, read DCR, set EA on file it points to, when done, search through the structure for files without the EA.
Reasonably quick, HOWEVER, I then would have 15,000 modified files since adding an EA is a file modification.
My current thought:
do an ls -R for the files into an array, read DCR 1, find file referenced in array. Very slow & CPU intense. Other ideas ? I was thinking about sort & a binary search.
TIA
Andy
Find more posts tagged with
Comments
There are no comments yet