1 Star 0 Fork 1

Jerry.z/python findfiles after 2013.04.18 and sum its size

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
findfiles.py 338 Bytes
一键复制 编辑 原始数据 按行查看 历史
yierqi 提交于 2013-06-08 13:40 . 2 commit
#!/usr/bin/evn python
import os
sum0=0
root=os.walk("/root")
for i,dirs,files in root:
for file in files:
if int(os.path.getctime(os.path.join(i,file)))>1367078400:
# print os.path.join(i,file)
sum0 = sum0 + os.path.getsize(os.path.join(i,file))
print sum0
print sum0/1024,"k"
print sum0/1024/1024,"m"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Jerry.z/python-findfiles-after-2013-04-18-and-sum-its-size.git
git@gitee.com:Jerry.z/python-findfiles-after-2013-04-18-and-sum-its-size.git
Jerry.z
python-findfiles-after-2013-04-18-and-sum-its-size
python findfiles after 2013.04.18 and sum its size
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385