1cb93a386Sopenharmony_ci#!/usr/bin/env python
2cb93a386Sopenharmony_ci
3cb93a386Sopenharmony_ci# Copyright 2019 Google LLC.
4cb93a386Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
5cb93a386Sopenharmony_ci# found in the LICENSE file.
6cb93a386Sopenharmony_ci
7cb93a386Sopenharmony_ci"""
8cb93a386Sopenharmony_ci  Prints "true" if the input |file_name| exists.
9cb93a386Sopenharmony_ci"""
10cb93a386Sopenharmony_ci
11cb93a386Sopenharmony_ciimport argparse
12cb93a386Sopenharmony_ciimport os
13cb93a386Sopenharmony_ci
14cb93a386Sopenharmony_ciparser = argparse.ArgumentParser()
15cb93a386Sopenharmony_ciparser.add_argument("-file_name", type=str,
16cb93a386Sopenharmony_ci        help="File name for which to check existence for.")
17cb93a386Sopenharmony_ciargs = parser.parse_args()
18cb93a386Sopenharmony_ciif os.path.exists(args.file_name):
19cb93a386Sopenharmony_ci  print "true"
20