diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 13:49:39 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 13:49:39 +0000 |
commit | d88f288d0adc44671d45d96c60099012960e0681 (patch) | |
tree | 32c3e4639e53aa1503ae07418e069d4ca47c3dd8 /file.c | |
parent | a8f28e70eb27a9d15dabe81368f2fb21370fdf98 (diff) | |
download | ruby-d88f288d0adc44671d45d96c60099012960e0681.tar.gz |
Improve docs for `File.delete` exceptions.
https://github.com/ruby/ruby/pull/1505
Patch by @mrtazz [fix GH-1505]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2883,6 +2883,12 @@ unlink_internal(const char *path, VALUE pathv, void *arg) * * Deletes the named files, returning the number of names * passed as arguments. Raises an exception on any error. + * Since the underlying implementation relies on the + * <code>unlink(2)</code> system call, the type of + * exception raised depends on its error type (see + * https://linux.die.net/man/2/unlink) and has the form of + * e.g. <code>Errno::ENOENT</code>. + * * See also <code>Dir::rmdir</code>. */ |