# File lib/ole/storage/file_system.rb, line 110 def expand_path path # its already absolute if it starts with a '/' unless path =~ /^\// # get the raw stored pwd value (its blank for root) pwd = @ole.dir.instance_variable_get :@pwd path = "#{pwd}/#{path}" end # at this point its already absolute. we use File.expand_path # just for the .. and . handling # No longer use RUBY_PLATFORM =~ /win/ as it matches darwin. better way? if File::ALT_SEPARATOR != "\\" File.expand_path(path) else File.expand_path(path)[2..-1] end end