Commit 39bd2401 authored by Paolo Bosetti's avatar Paolo Bosetti

Fixed bug in File.expand_path() on Windows (forever recursive loop)

parent 7ff04945
......@@ -64,7 +64,7 @@ class File < IO
def self.expand_path(path, default_dir = '.')
def concat_path(path, base_path)
if path[0] == "/"
if path[0] == "/" || path[1] == ':' # Windows root!
expanded_path = path
elsif path[0] == "~"
if (path[1] == "/" || path[1] == nil)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment