Problem with building a directory tree in separate folder (Recursive -> One file per folder)

73 views
Skip to first unread message

adrianbon64

unread,
Aug 19, 2010, 11:39:56 AM8/19/10
to dirhtml discussion group
I was trying to build a directory list as group of html-files, each
html file per each sub-folder.

For example, I have bunch of files and sub-folders inside
c:/aaa/

and I'm going to build a web-like tree (linked html-files representing
list of files for corespondent folder)
That 'website' must be in separate folder, of course:
c:/bbb

I've used settings:
"Recursive" > [v] One file per folder
"Folders, Files" >
> Folder(F4) [ \aaa ]
> Output File [ c:\bbb\%%DIR\index.html ]
we have NO FILES WERE GENERATED (NO matching files or folders were
found...)
or, if I do
> Output File [ c:\bbb\%%DIR.html ]
it makes ONLY ONE file inside 'bbb' ... ( "%%DIR.html" !)

NOTE: Was tested on dirhtml v4.853 (portable) (updated August 17,
2010)

dirhtml

unread,
Aug 19, 2010, 11:46:57 AM8/19/10
to dirhtml discussion group
Variables (e.g. %%DIR) aren't recognized in output filenames. Also,
when generating "one file per folder," the location of generated files
is automatically determined and can't be changed. Dirhtml will prefix
whatever the output filename is with each recursively processed
folder.

Try it with just a filename as the output file (e.g. index.html).

Note that for other types of builds, the file can be saved anywhere.

adrianbon64

unread,
Aug 19, 2010, 2:56:00 PM8/19/10
to dirhtml discussion group
The thing is I cannot use 'just a (SINGLE) filename as the output file
(e.g. index.html)'
because it makes a HUGE file (50 Mb or more for a hard drive), it's
useless for using, especially when I put it online.
that's why I'm looking dir-list software with ability to split it: one
file for each folder.

Can you add that feature to your amazing software?

Cheers
Adrian Bon

P.S. I don't need any links to actual files on drive, just file and
folder listing with dates and file sizes.

dirhtml

unread,
Aug 19, 2010, 3:02:19 PM8/19/10
to dirhtml discussion group
The html file size can be squeezed down quite a bit by selecting "non-
functional links" on the Miscellaneous page.

I think I see what you are trying to do. You want one file
representing each sub-folder, all saved to one folder and uniquely
named, hence the %%DIR variable. It's something I've never
contemplated and it can't be done with dirhtml right now.
Reply all
Reply to author
Forward
0 new messages