python修改windows文件夹owner

frogoscar
企业官方账号
2012-11-10 07:39:50
大家好,我现在公司有一个文件夹,里面有不少子文件夹,但每个子文件夹的Owner不一样。现在想统一改成一个Owner (mwdeldev),我刚学Python,还不是很熟悉,我也Google了一下,请问有什么方法可以用Python脚本来修改文件夹所有文件的Owner。谢谢!
...全文
268 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
DevinXie 2013-07-17
  • 打赏
  • 举报
回复
windows下没有么?
Gloveing 2012-11-19
  • 打赏
  • 举报
回复
os.chown(path, uid, gid) Change the owner and group id of path to the numeric uid and gid. To leave one of the ids unchanged, set it to -1. Availability: Unix.

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧