Project

General

Profile

Backport #5629 » test.rb

hannibal (Masafumi Kiribayashi), 11/14/2011 01:27 PM

 
1
#!ruby -Ks
2
# coding: cp932
3
path1 = "H:/TEMP/?????/file"
4
path2 = File.expand_path(path1)
5
puts "(path1 == path2) => #{path1 == path2}"
6
puts "File.exist?(path1) => #{File.exist?(path1)}"
7
puts "File.exist?(path2) => #{File.exist?(path2)}"