Project

General

Profile

Feature #12656

Expand short paths with File.expand_path

Added by davispuh (Dāvis Mosāns) about 3 years ago. Updated over 1 year ago.

Status:
Assigned
Priority:
Normal
Assignee:
cruby-windows
Target version:
-
[ruby-core:76735]

Description

Currently File.expand_path expands short path only if it's last part.

puts File.expand_path('C:/VERYLO~1')
puts File.expand_path('C:/VERYLO~1/OTHERL~1')

Produces

C:/VeryLongName12345
C:/VERYLO~1/OtherLongName54321

With attached patch it will always be long path

C:/VeryLongName12345
C:/VeryLongName12345/OtherLongName54321

This also fixes TestDir#test_glob test because it was failing due short path.


Files

History

Updated by shyouhei (Shyouhei Urabe) about 3 years ago

  • Assignee set to cruby-windows
  • Status changed from Open to Assigned

Updated by abotalov (Andrei Botalov) over 1 year ago

This would be a good addition because "expand" means that the form should be long.

Also available in: Atom PDF