mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 18:04:02 -07:00
Add win_splitdrive filter for windows users
This commit is contained in:
parent
4f32a61504
commit
a46b500851
2 changed files with 13 additions and 0 deletions
|
@ -254,6 +254,7 @@ class FilterModule(object):
|
|||
'splitext': partial(unicode_wrap, os.path.splitext),
|
||||
'win_basename': partial(unicode_wrap, ntpath.basename),
|
||||
'win_dirname': partial(unicode_wrap, ntpath.dirname),
|
||||
'win_splitdrive': partial(unicode_wrap, ntpath.splitdrive),
|
||||
|
||||
# value as boolean
|
||||
'bool': bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue