diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-19 11:42:51 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-19 11:42:51 +0000 |
| commit | 2a3bfca5f4a5e13ec96aa7eb717d261974843eb7 (patch) | |
| tree | 92e87afcc0f6b5965bb4a8e01849e22ec891c141 /lib | |
| parent | b0e860978206e846d0458e950e9aeb32e73107c8 (diff) | |
| download | ruby-2a3bfca5f4a5e13ec96aa7eb717d261974843eb7.tar.gz ruby-2a3bfca5f4a5e13ec96aa7eb717d261974843eb7.tar.xz ruby-2a3bfca5f4a5e13ec96aa7eb717d261974843eb7.zip | |
* lib/fileutils.rb (FileUtils::ln): ln documentation fix.
[ruby-core:06661]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/fileutils.rb | 2 | ||||
| -rw-r--r-- | lib/find.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 2d9692c51..646cfe07d 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -274,7 +274,7 @@ module FileUtils # <b><tt>ln(old, new, options = {})</tt></b> # # Creates a hard link +new+ which points to +old+. - # If +new+ already exists and it is a directory, creates a symbolic link +new/old+. + # If +new+ already exists and it is a directory, creates a link +new/old+. # If +new+ already exists and it is not a directory, raises Errno::EEXIST. # But if :force option is set, overwrite +new+. # diff --git a/lib/find.rb b/lib/find.rb index 08a3908c5..b2e811e61 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -37,6 +37,7 @@ module Find while file = paths.shift catch(:prune) do yield file.dup.taint + next unless File.exist? file begin if File.lstat(file).directory? then d = Dir.open(file) |
