'Cleans the name so that Windows style paths work'

def _clean_name(self, name):

    clean_name = posixpath.normpath(name).replace('\\', '/')
    if (name.endswith('/') and (not clean_name.endswith('/'))):
        return (clean_name + '/')
    else:
        return clean_name
