def check_dir(root, drive):
    return os.path.isdir(os.path.join(root, drive))
Verify that the path to the device is a directory and is a lesser
dataset/ETHPy150Open openstack/swift/swift/common/constraints.py/check_dir