From: Michael Kelly Date: 2002-01-02T12:25:27+09:00 Subject: [ruby-talk:30024] Re: How to check free diskspace? On Tue, 01 Jan 2002 22:11:06 GMT, ptkwt@shell1.aracnet.com (Phil Tomson) wrote: >Sounds like a good candidate for a module to convert to Ruby. >But how does it handle drive letters on Windows vs mount points on Unix? That's still a weak point AFAIK. From what I've seen the assumption is that '/' root is equivalent to "C:\" Still, there's an attempt to use portable semantics and if they come up with a solution to the drive letter issue that would be a big improvement. At least you don't find yourself doing stuff like if last letter in path <> '\\' then path += '\\' path += filename. You just do fname = os.path.join(path, filename) and join deals with whether or not there's a trailing dir separator etc.. At any rate the os.path modules are all supplied as source so you could probably get some good ideas for doing it in Ruby and make some needed enhancements. Maybe if you come up with a solution to the filesystem root issue it will percolate back to Python too. :) Mike -- "I don't want to belong to any club that would have me as a member." -- Groucho Marx