結果 : check if string is file or directory python