Create Collection of Files and Folders

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
Im writing a program that takes all files and directories on a computer and puts them in a collection, where I add a collection to the Collection for a directory with the key being the name of it and a string containing the Name for a file under the
collections added I do the same,
Example:
I have directory C:
Under this directory I have directories Folder1 and Folder2 AND Files File1, File2, and File3
Under Folder1 There is File1 and Under Folder2, I have directory Folder1 containing File1 and File2
I would Then have A Collection mapped like this (main collection being C:)
Collection
Collection (Key = "Folder1")
String (Value = "File1")
Collection (Key = "Folder2")
Collection (Key = "Folder1")
String (Value = "File1")
String (Value = "File2")
String (Value = "File1")
String (Value = "File2")
String (Value = "File3")

Please help and I hope I havent been too confusing

Thanks,
Hyrum <hr class="sig Hyrum Hammon ABSOLUTE GENIUS

View the full article
 
Back
Top