use stats for check if file exist before trying to open it. This is very usefull on nfs/autofs/network remote filesystem for avoid lags due to the remote filesystem implementation.
patch done with command : diff -Naur
see issue #1604355
patch done with command : diff -Naur
see issue #1604355