path filters for windows

Anyone have any objection to me adding a few filters for windows paths?

looks pretty straightforward to do, just import ntpath then use the ntpath versions of the os.path methods:

I’m thinking just add the following (and using the ansible-ish convention of starting windows things with win_):

‘win_basename’: partial(unicode_wrap, ntpath.basename),
‘win_dirname’: partial(unicode_wrap, ntpath.dirname),
‘win_expanduser’: partial(unicode_wrap, ntpath.expanduser),

Jon

Actually win_expanduser would be no use, since the filter would be run on the ansible controller only.

Well its here if anyone would like it:

https://github.com/ansible/ansible/pull/11864

cheers,

Jon