IS_FOLDER Determine if path is a folder

left for backward compatibility