From: Torsten Mangner Date: 2008-07-04T15:48:12+09:00 Subject: Re: Getting Folder Size Clement Ow wrote: > When I use File.size("C:/ruby"), all it returns is 0. > But for files it does work fine. So is there a way to calculate folder > size? since a directory is just something virtual, it has a size of 0. you will have to get all of the files the folder includes (recursive) and sum their sizes up. -- Posted via http://www.ruby-forum.com/.