作者KCda260 (如此多嬌)
看板Ruby
標題Re: [問題] Get folder size?
時間Thu Apr 16 06:45:57 2009
※ 引述《Morishita (千倉雲)》之銘言:
: 請問ruby怎麼在windows下得到folder的大小呢?
If you right-click on a large Windows folder such as My Documents and
select Properties (in XP at any rate) you can see the system recursing
through and adding up the number of bytes. In theory this figure could
be made available instantly if the system kept track of what was going
on in each folder. But presumably that would slow things down (more)
--
請問郭女俠第三根手指要差哪裡
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.168.237.42
1F:→ ducksteven:純推不下 看不懂 orz 04/16 10:08
2F:→ godfat:大意就是一定要用算的,用記的會在其他地方變慢太多 04/16 10:51