How to perform a Check Files function