Search for files/directories named 'fileName.txt' under '/path/to/folder' directory tree without traversing into directories that contain the string 'ignored_directory' in their paths
find /path/to/folder -path "*/ignored_directory" -prune -o -name fileName.txt -print