updating code which is retrieving all files in the root folder