1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/build/dir_exists.py Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +#!/usr/bin/env python 1.5 +# Copyright (c) 2011 The Chromium Authors. All rights reserved. 1.6 +# Use of this source code is governed by a BSD-style license that can be 1.7 +# found in the LICENSE file. 1.8 +"""Writes True if the argument is a directory.""" 1.9 + 1.10 +import os.path 1.11 +import sys 1.12 + 1.13 +def main(): 1.14 + sys.stdout.write(str(os.path.isdir(sys.argv[1]))) 1.15 + return 0 1.16 + 1.17 +if __name__ == '__main__': 1.18 + sys.exit(main())