Alpha Documentation



Example 1 - simple


list = filefind.get("c:\\css\theme\*.*",FILE_FIND_DIRECTORY,"N")


N means get the name of the file or directory

FILE_FIND_DIRECTORY means I am looking for directory names, not files




Example 2 - getting all files in the directory


dim e.rtc.css_theme as c


if eval_valid("e.tmpl.request.ApplicationRoot")

       css_theme = filefind.get(e.tmpl.request.ApplicationRoot + "css\theme\*.*",FILE_FIND_DIRECTORY,"N")

       if css_theme <> ""

               css_theme = *line_remove(css_theme,1,2)

               css_theme = "|" + crlf() + css_theme

       end if

end if