ansible.builtin.win_dirname (v2.16.0) — filter

Get a Windows path's directory

| "added in version" 2.0 of ansible.builtin"

Authors: ansible core team

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Returns the directory component of a Windows path, what is left in the string that is not 'win_basename'.

Inputs

    
_input:
    description: A Windows path.
    required: true
    type: str

Outputs

_value:
  description: The directory from the Windows path provided.
  type: str

See also