def add_share(self, pathname):
        drive, sharename = os.path.split(pathname)
        if not os.path.isdir(pathname):
            os.mkdir(pathname)
        shinfo={} # shinfo struct
        shinfo['netname'] = sharename
        shinfo['type'] = win32netcon.STYPE_DISKTREE
        shinfo['remark'] = 'Testing share %s' % (sharename,)
        shinfo['permissions'] = 0
        shinfo['max_uses'] = -1
        shinfo['current_uses'] = 0
        shinfo['path'] = pathname
        shinfo['passwd'] = ''
        win32net.NetShareAdd(None,2,shinfo)
        return sharename
Converts `obj` to a field object. `obj` can be ``str``, ``tuple``
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/remote/WindowsServer.py/Win32Agent.add_share--crossover with--dataset/ETHPy150Open Stiivi/brewery/brewery/metadata.py/to_field