michael@0: #!/usr/bin/env python michael@0: # Copyright (c) 2011 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: """Writes True if the argument is a directory.""" michael@0: michael@0: import os.path michael@0: import sys michael@0: michael@0: def main(): michael@0: sys.stdout.write(str(os.path.isdir(sys.argv[1]))) michael@0: return 0 michael@0: michael@0: if __name__ == '__main__': michael@0: sys.exit(main())