Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Recursive Directory Scan to Populate a Table (2 replies)

$
0
0
I'm looking for the most efficient way to populate a table (fields being filename, file extension, file size, creation date) from a directory that contains subfolders - the user would decide what file extension(s) they want added to the table.

In other languages, functions that scan a directory tree typically populate an array - WinDev appears to build a string. My first concern is the string length - one sample folder contains > 7000 potential files matching the search criteria. The second concern is how best to add only files that match the file extension criteria - is it better to scan for everything and filter out the undesirable files when adding records to the table or is it more efficient to weed out the undesirable files during the recursive scan?

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>