How To Check For New Files In Subfolders

hi, i need some suggestions, i have folders to be checked every a few hours, the folders structure are:
-c:/main_folder/folderA/checkfolder/(files)
-c:/main_folder/folderB/checkfolder/(files)

the output is a list of every new files inside these 2 subfolders

Hey @lentvalent
Directory.getfiles(path) used to get all files in a folder.

Yup, already use directory.getfiles, but how to check for new files (more than 1 file) in those 2 subfolders and put it in a list?

You could use a last date modified to check when the file was last written.