I'm not a programmer of any kind or language; I'm an amateur.
I have a personal digital library with thousands of documents, which are useless unless I manage to classify them.
I thought it would be an easy task with Squeak, since it is a quite simple problem, but I'm lacking some solutions, as a beginner.
My general cenario:
I made a class, lets call it card, to hold information about each work, each author, their location on disk and the relations between authors and works:
Object>>#Card (instance var : name, location, notes, tags ... )
>>Author
>> Work
Object>>#MyLibrary (instance var : authors <aCollection>, works <aCollection>, myLibraryBase <aPath?>)
Than I initialize #MyLibrary instances with a UIManager directoryChooser to establish from the begining a reference to the directory where all the relevant files are.
But, because it is thousands of files, I would need an automatic method to «scan» all the relevant files in the directories and subdirectories. Meaning: the method should make a collection of all the files, recursively in subdirectories, and for each one it should create a card.
And that's where I got stuck: how do I scan recursively the subdirectories?
Most of the new tools are quite confusing for me, namely classes and tools to deal with files.
Can anyone point me in the wright direction, please?
Thanks