Project

General

Profile

Feature #3356

Updated by mame (Yusuke Endoh) about 12 years ago

=begin 
  
  Hi! 
 
  I use Ruby on windows and it would be really useful to have access to GetShortPathName in ruby. 
 
  I have a monkey-patch to add Pathname.shortpath (attached) to demonstrate it.    Probably realpath, etc. should take this in to account as well, since in windows, only the shortpath is canonical. 
 
  In addition, the shortpath doesn't need to be escaped, so you can use it with backticks (`), etc. 
 
  Ciao! 
 
 =end 
 

Back