This is a simple yet powerful way to find the newest file in a folder (including sub folders):

dir=the-folder-in-question
newest_file="$(find $dir -type f | xargs ls -ltr | tail -n 1 | awk '{print $NF}')"