to load custom modules(js and style sheets as and when required)

Hi,

how can i load the all the js files and css files(not built in) for a particular page .i know i can achieve this using FileLoader.loadJsFiles().
but how to load all the files by just pointing to a folder.

thanks
Sachin