The win32-xpath library provides a revamped File.expand_path method for MS Windows. It is significantly faster, and supports ~user expansion as well.
Daniel J. Berger
Apache 2.0