diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-19 05:33:07 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-19 05:33:07 +0000 |
commit | 0e658e0bcd8a1ef63da35205e7cc547459bc6767 (patch) | |
tree | 729814ad6d0fe6393914b64fca8910169877e10a /lib | |
parent | 0e8f8cb19d00a83b2cda6ed03edb6277a970708a (diff) | |
download | ruby-0e658e0bcd8a1ef63da35205e7cc547459bc6767.tar.gz ruby-0e658e0bcd8a1ef63da35205e7cc547459bc6767.tar.xz ruby-0e658e0bcd8a1ef63da35205e7cc547459bc6767.zip |
* lib/fileutils.rb (fu_same?): add djgpp and wince.
* lib/fileutils.rb (cannot_overwrite?): add wince.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fileutils.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 18aa862bf..0210e64f0 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -464,8 +464,8 @@ module FileUtils alias move mv - def cannot_overwrite_file? #:nodoc: - /djgpp|cygwin|mswin|mingw|bccwin/ === RUBY_PLATFORM + def cannot_overwrite_file? #:nodoc: + /djgpp|cygwin|mswin|mingw|bccwin|wince/ === RUBY_PLATFORM end private :cannot_overwrite_file? @@ -740,7 +740,9 @@ module FileUtils def fu_same?( a, b ) if have_st_ino? - File.stat(a).dev == File.stat(b).dev and File.stat(a).ino == File.stat(b).ino + st1 = File.stat(a) + st2 = File.stat(b) + st1.dev == st2.dev and st1.ino == st2.ino else File.expand_path(a) == File.expand_path(b) end @@ -749,7 +751,7 @@ module FileUtils end def have_st_ino? - /mswin|mingw|bccwin/ !~ RUBY_PLATFORM + /djgpp|mswin|mingw|bccwin|wince/ !~ RUBY_PLATFORM end def fu_stream_blksize( *streams ) |