def should_tag_by_object_type(args, object_):
    """Returns True if object matches object type requirements"""
    valid = True
    if args.tag_folders_only and not object_.is_folder:
        valid = False
    if args.tag_files_only and not object_.is_file:
        valid = False
    if args.tag_datasets_only and not object_.is_dataset:
        valid = False
    if not valid:
        print('{}WARNING: Excluding {} {} by object_type'.format(
            '[Dry Run] ' if args.dry_run else '', object_.object_type,
            object_.full_path))
    return valid
