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