Revert "New: Added logic to find the files in the given directory"

This reverts commit cd72d49e8b5ccbe391edbbca3e5760644ca41c19.