Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximum number of files in one directory?
Message
De
18/02/2009 16:51:26
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Windows
Catégorie:
Réseau & connectivité
Divers
Thread ID:
01382738
Message ID:
01382763
Vues:
60
>>Beware! :)
>>
>>There may not be a limit in OS terms, but in VFP terms, there is definitely a limit for the ADIR() function. 488 files on my machine. Pass that limit, ADIR will still work and not give any errors, but will only return 488 files.
>
>That does not happen to me at all.
>
>
>? Adir(laFiles, 'X:\foxv\ATC\Datadump\VCC\*.*') && 16933
>? Alen(laFiles) && 84665
>? Alen(laFiles, 1) && 16933
>
>for lnFile = Alen(laFiles, 1) - 50 to Alen(laFiles, 1)
>	? laFiles[lnFile, 1] && Looks as they are indeed the last 50 files (the files names are date-related and I got the last days as I expected)
>next lnFile
>
I have had to process large numbers of files in the past and as I remember it, ADIR did not work reliably. Of course this was before the array size became limitless. I know I did a sample recently with 500 files and ADIR did not show more than 488. I just tried with 100,000 and it worked fine. Doesn't make me feel warm and fuzzy.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform