

def check_dir(root, drive):
    "\n    Verify that the path to the device is a directory and is a lesser\n    constraint that is enforced when a full mount_check isn't possible\n    with, for instance, a VM using loopback or partitions.\n\n    :param root:  base path where the dir is\n    :param drive: drive name to be checked\n    :returns: True if it is a valid directoy, False otherwise\n    "
    return os.path.isdir(os.path.join(root, drive))

dataset/ETHPy150Open openstack/swift/swift/common/constraints.py check_dir/original