1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/yaml/store.rb: use FileUtils::copy.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2004-05-09 04:25:15 +00:00
parent f0a523c45a
commit 9c61c44fba
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun May 9 13:24:24 2004 WATANABE Hirofumi <eban@ruby-lang.org>
* lib/yaml/store.rb: use FileUtils::copy.
Sun May 9 12:34:26 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
* regex.c : removed unused file.

View file

@ -3,6 +3,7 @@
#
require 'yaml'
require 'pstore'
require 'fileutils'
module YAML
@ -40,7 +41,7 @@ module YAML
end
file.flock(File::LOCK_EX)
if orig
File::copy @filename, backup
FileUtils::copy @filename, backup
@table = YAML::load( file )
end
begin