草庐IT

python - 使用python创建共享windows文件夹的权限

我在python3.3中使用此代码与pywin32库共享一个文件夹。我现在如何向文件夹添加权限?以下代码不设置共享文件夹的权限。我想将特定用户添加为读/写importwin32netimportwin32netconshinfo={}shinfo['netname']='pythontest'shinfo['type']=win32netcon.STYPE_DISKTREEshinfo['remark']='datafiles'shinfo['permissions']=0shinfo['max_uses']=-1shinfo['current_uses']=0shinfo['path