Indexing/Directory Enumeration
Indexing/Directory Enumeration
- Subject: Indexing/Directory Enumeration
- From: Austin Sarner <email@hidden>
- Date: Tue, 22 Feb 2005 19:46:25 -0500
Hello,
I am trying to recursively loop through the contents of a folder
recreating the structure using an IndexedFolder class that contains an
array of for the contents of the folder and a string for the name (to
represent the folders) and a special class called IndexedFile which
holds info about each file and represents them.
Therefore if I had this as a structure:
-johndoe>
--pictures>
---summer>
----bla
----bla
---winter>
----bla
----bla
---funny>
----bla
----bla
--movies>
---bla
---bla
--documents>
---bla
---bla
--letter
--funnypicture
I would have an IndexedFolder with a name "johndoe" containing an array
of the indexedfolders pictures, movies, documents and two indexedfiles
for letter and funnypicture. This would go on, but you get the point.
I'm pretty sure I will need to use an NSDirectoryEnumerator to go
through them all and create the objects and make the arrays to
represent it. Is this the right approach? And if so, can you give me
a nudge in the right direction. Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden