Re: [問題] Get folder size?

看板Ruby作者 (如此多嬌)時間16年前 (2009/04/16 06:46), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《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

04/16 10:08, , 1F
純推不下 看不懂 orz
04/16 10:08, 1F

04/16 10:51, , 2F
大意就是一定要用算的,用記的會在其他地方變慢太多
04/16 10:51, 2F
文章代碼(AID): #19vcEfMY (Ruby)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #19vcEfMY (Ruby)