标签:
flag = FileTest::exist?("LochNessMonster") flag = FileTest::exists?("UFO") # exists? is a synonym for exist?
OK了
Ruby判断文件是否存在
原文地址:http://www.cnblogs.com/hitnoah/p/4338361.html