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