You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
456 B

#!/usr/bin/env python
# Copyright 2019 Google LLC.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Prints "true" if the input |file_name| exists.
"""
import argparse
import os
parser = argparse.ArgumentParser()
parser.add_argument("-file_name", type=str,
help="File name for which to check existence for.")
args = parser.parse_args()
if os.path.exists(args.file_name):
print "true"