On Dec 7, 2006, at 10:19 AM, Jason T. Slack wrote:
I am creating a web app in a4d that needs access to the filesystem,
I want to quickly scan the users hard drive for documents ending
in .xls, .pdf, etc
Any thoughts on how to do this?
Use System Document commands:
http://www.4d.com/docs/V6U/V6U00052.HTM
Start by getting the VOLUME LIST
for each volume
get directory list
for each directory
get file list
for each file
if (file has extension I'm looking for)
add it to list of files i want
end if
end for
end for
end for
Recursion is a BIG help here. Design those for loops with that in
mind right from the start.
Also, in the past code intensive things like this may benefit from
writing it as a 4D method called from the A4D page. It can take
advantage of compiled speeds that way.
I know A4D 4.0 is faster that 3.0, but I don't know by how much, so
it may/may not be an issue any more.
HTH,
Randy
-----------------------------------------
Randy Jaynes
Management Software
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/