recursion limit when creating file list of harddrive
Matthias Rebbe | M-R-D
matthias_livecode_150811 at m-r-d.de
Sun Oct 25 19:27:05 EDT 2015
Thanks for all your comments.
Richard was right, my recursion limit error was caused by the fact that the directory could not be set.
It was, like Alex assumed, a strange character in a folder. After i changed that folder name in my “sample” harddrive i was able to import the drive.
In future my program will ask if the customer wants to continue or quit when the directory change was not successful with some additonal information about the folder.
And Alex, thanks for your script.
Regards,
Matthias
> Am 25.10.2015 um 01:28 schrieb Matthias Rebbe | M-R-D <matthias_livecode_150811 at m-r-d.de>:
>
> Hi,
>
> long time ago i created a program which creates a list of files of backup cds or dvds and stores that listings in a database with some additional information like cd name/number.
> So if the customer needs to know on which cd/dvd a needed fileis, the database can be searched. This worked fine a long time. But with time the customer used harddrives for the backups.
> So they imported now the file listing of harddrives. Even that worked fin. But now with bigger drives and more stuff stored on the drives my program is not able to import the file listing anymore if the number of files/folders exceed a special number. It just freezes.
>
> If i try to create a directory listing of such a drive in Livecode i get an recursion limit error telling me that the recursion limit of 400000 was reached. I tried to increase that limit, but i still get that error, but with the newly set value.
>
> I am using a script snippet which was posted by Scott Rossi to the list and was originally from Geoff Canyon in 2002.
> http://lists.runrev.com/pipermail/metacard/2002-August/002274.html
>
> Is there a way to scan a complete drive with LC regardless how many folders and subfolder that drive contains without getting that recursion limit error?
>
> Regards,
>
> Matthias
>
>
>
>
> Matthias Rebbe
> Bramkampsieke 13
> 32312 Lübbecke
> Tel +49 5741 310000
> +49 160 5504462
> Fax: +49 5741 310002
> eMail: matthias at m-r-d.de <mailto:matthias at m-r-d.de>
>
> BR5 Konverter - BR5 -> MP3 <http://matthiasrebbe.eu/portfolio/produkte/brx/>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list