diff options
Diffstat (limited to 'gn/checkdir.py')
-rw-r--r-- | gn/checkdir.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gn/checkdir.py b/gn/checkdir.py new file mode 100644 index 0000000000..4de7e80203 --- /dev/null +++ b/gn/checkdir.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# +# Copyright 2017 Google Inc. +# +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import os +import sys + +dirpath, = sys.argv[1:] + +print os.path.isdir(dirpath) + + |