--- lib/uri/ftp.rb.org 2009-03-06 12:56:38.000000000 +0900 +++ lib/uri/ftp.rb 2009-06-29 11:59:27.000000000 +0900 @@ -181,15 +181,13 @@ end def to_s - save_path = nil + save_path = @path + @path = '/' + path if @typecode - save_path = @path @path = @path + TYPECODE_PREFIX + @typecode end str = super - if @typecode - @path = save_path - end + @path = save_path return str end