Checking file or directory exist or not