# File lib/win32/file.rb, line 493 def long_path(file) buf = 0.chr * MAX_PATH if GetLongPathName(file, buf, buf.size) == 0 raise ArgumentError, get_last_error end File.basename(buf.split(0.chr).first.strip) end