結果 : check if is file or folder python