• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
11import argparse
12import os
13
14parser = argparse.ArgumentParser()
15parser.add_argument("-file_name", type=str,
16        help="File name for which to check existence for.")
17args = parser.parse_args()
18if os.path.exists(args.file_name):
19  print "true"
20