On Jan 3, 2015, at 9:02 PM, Shane Stanley < email@hidden> wrote:
On 4 Jan 2015, at 12:44 pm, Alex Hall < email@hidden> wrote: As to formatting, this guy is visually impaired, so pretty formatting and indenting isn't necessary, the important thing is logical layout. I can play with the finer points once I get a working model.
Right, but what I mean is this -- your sample was:
/users/alexhall contains 1 file and 16 folders
Files: someFile.pages
Documents contains 3 files: 1.txt 2.rtf 3.numbers
Downloads contains 85 files:
That gives no real indication of how you'd want subfolders of Documents and their contents to appear, and the subfolders of them, etc. To some extent, how you want it to appear drives the design of the code -- the format dictates whether you get all the data recursively and then format it, or whether you traverse each folder and format the results as you go.
Ah, gotcha. I actually like how the ls command does it, now that I see it:
main folder: file1 file2
main folder/sub1: file3 file4
main folder/sub1/sub1A file5
main folder/sub2 file6
and so on. I'm not set on any particular template at this point, and I wouldn't mind, one day, letting the user define the layout. I already have a basic template framework in place, in pure AS so it'll work on 10.8. Anyway, one step at a time I guess. :)
--
Have a great day, Alex Hall
|