結果 : check if path is file or folder python