python os之chmod方法简介
来源:互联网 发布:数据库建表原则 编辑:程序博客网 时间:2024/05/22 13:26
os.chmod(path,mode) 这个方法应该很简单,只需要2个参数,一个是路径,一个是说明路径的模式,下面列出了这个用法中可以使用的一些常用的模式:
stat.S_ISUID: Set user ID on execution. 不常用
stat.S_ISGID: Set group ID on execution. 不常用
stat.S_ENFMT: Record locking enforced. 不常用
stat.S_ISVTX: Save text image after execution. 在执行之后保存文字和图片
stat.S_IREAD: Read by owner. 对于拥有者读的权限
stat.S_IWRITE: Write by owner. 对于拥有者写的权限
stat.S_IEXEC: Execute by owner. 对于拥有者执行的权限
stat.S_IRWXU: Read, write, and execute by owner. 对于拥有者读写执行的权限
stat.S_IRUSR: Read by owner. 对于拥有者读的权限
stat.S_IWUSR: Write by owner. 对于拥有者写的权限
stat.S_IXUSR: Execute by owner. 对于拥有者执行的权限
stat.S_IRWXG: Read, write, and execute by group. 对于同组的人读写执行的权限
stat.S_IRGRP: Read by group. 对于同组读的权限
stat.S_IWGRP: Write by group. 对于同组写的权限
stat.S_IXGRP: Execute by group. 对于同组执行的权限
stat.S_IRWXO: Read, write, and execute by others. 对于其他组读写执行的权限
stat.S_IROTH: Read by others. 对于其他组读的权限
stat.S_IWOTH: Write by others. 对于其他组写的权限
stat.S_IXOTH: Execute by others. 对于其他组执行的权限
- python os之chmod方法简介
- Python os.chmod()
- python 的os模块下chmod方法简单介绍
- Python os模块简介
- Python os.walk() 简介
- python os模块简介
- Python中的OS模块简介
- python os.open()方法
- Python os.stat() 方法
- Python os.walk() 方法
- python os常用方法
- Python os.stat() 方法
- Python os.chdir() 方法
- PYTHON模块之os
- python之os类库
- python 之 os
- python之os库
- python之os模块
- ios 设备可用内存信息
- 从那一天起,你就成了我的全部
- 深入C++的new
- 【2012Esri中国用户大会讲座】ArcGIS 10.1 for Server 安全机制(4)访问内容限制
- 图学PowerBuilder----去除启动后加载上次项目的方法
- python os之chmod方法简介
- APP的决胜期往往在一个月之内
- 字符过滤(2013华为校园招聘上机考试)
- 研究显示每天工作超8小时得心脏病概率增加80%,生命很重要,工作不要那个累。
- UIApplication
- sql ROW_NUMBER() 排序函数
- JS(数组)
- Windows操作系统间解决文件夹同步的问题
- BindingSource新增行赋初值