I spotted this as the result of the latest win32-file-stat tests I've been running: require 'windows/path' include Windows::Path file1 = 'test' file2 = file1.dup PathStripToRoot(file1) p file1 => "