add_folder_backslash

utilipy.decorators.add_folder_backslash(function=None, *, arguments=[], _doc_style='numpy', _doc_fmt={})[source]

Add backslashes to str arguments.

For use in ensuring directory filepaths end in ‘/’

Parameters
functionCallable or None, optional

the function to be decoratored if None, then returns decorator to apply.

argumentslist of strings, optional

arguments to which to append ‘/’, if not already present strings are names of arguments

Returns
wrapperCallable

wrapper for function does a few things includes the original function in a method __wrapped__

Other Parameters
_doc_style: str or formatter, optional

default ‘numpy’ parameter to utilipy.wraps

_doc_fmt: dict, optional

default None parameter to utilipy.wraps