Check if the file the path points to exists
0 if it does not exists 1 if it exists and is not a directory 2 if it exists and is a directory
See Implementation
Check if the file the path points to exists