Getting a directory listing fails in javascript mode
in
Processing with Other Languages
•
11 months ago
Hi everyone,
There are a few lines in my code that work under java mode, but fail to do anything in javascript mode. I think it has something to do with local file access, but I'm not sure what to change it to so everything works in javascript. Anyway, here are the offending lines, based on code at
http://wiki.processing.org/w/Listing_files.
- File dir = new File("/home/ginman/Processing/loganalysis/data/logs/perry");
- String[] foldernames = dir.list();
Thanks
1