Gets most recent N files from a given folder.
Uses Arrays, and the function ArrSort_2Arr to sort files in descending order by date modified, then grab the top N files into ANStr.
You may decide separator, and number of files, folder should be passed as HTML UnMapPathed folder
If FileFilter = "", all file types will be returned
If FileFIlter starts with "." like ".txt", function will return files with that extension only
If FileFilter = "images", function will return image files only (jpg, png, gif and bmp)
Access is limited.
Login here using your Linkedin account. to see or download code.
No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydev.net
Linkedin LoginInFolder_UnMapPathed, ReturnRecent4Files, FileFilter, Sepa
Returns most recent 6 images from folder /folder2/
Response.Write Files_MostRecentN("/folder2/", 6, "images", "|")
Response.Write Files_MostRecentN("/folder2/", 6, "images", "|")
Views 4,331
Downloads 1,562
CodeID
DB ID