1)I had a set of ".js" files in a particular Directory structure.
2)I NEED to store them locally with my smalltalk image and need not want to host them seperately.
3) I DONT need to keep them inside the smalltalk image, with the WAFileLibrary.
Please let me know how the following code needs to be modified for my requirement.
Something like the following..?
You can indeed write:
but it's better to use:
Which allows you to setup the path as a configuration parameter. More on that in the Seaside book.
To serve the actual file, there are two options:
For the latter option, you can load the Seaside-Filesystem package from the Seaside30LGPL repository. Once loaded, you can define an 'external directory' handler for your 'myFolder' directory using the Seaside config tool and that handler will serve the files from the disk.