From: Michael Kelly Date: 2002-01-02T05:04:52+09:00 Subject: [ruby-talk:29983] Re: How to check free diskspace? On Tue, 01 Jan 2002 00:54:18 GMT, Rik Hemsley wrote: >Blame POSIX for not defining something useful... or not, because it's >pretty hard to come up with something generic. Seems like it would be a good area for a library module to make a generic interface to platform specific functions. As example Python has os.path module where 'path' just drags in the correct module for the platform, be it NT or Linux or whatever, and does stuff like join and split parts of file paths using the correct directory separator chars, glob files in a directory, get free disk space, file sizes and types etc.. so that the source of the script using the os.path module is the same. btw-I'm new to Ruby but one thing I *love* about it that is sort of related is the auto conversion of string constants for file paths, so in Win32 I can put "d:/Program Files/MyApp.exe" instead of the double-backslash bit "d:\\Program Files\\MyApp.exe" A nice touch. Mike -- "I don't want to belong to any club that would have me as a member." -- Groucho Marx