diff --git a/file.c b/file.c index c576c85c0a..b234910d5d 100644 --- a/file.c +++ b/file.c @@ -372,6 +372,9 @@ apply2files(void (*func)(const char *, VALUE, void *), int argc, VALUE *argv, vo * Returns the pathname used to create file as a string. Does * not normalize the name. * + * The pathname may not point the file corresponding to file. + * e.g. file has been moved, deleted, or created with File::TMPFILE option. + * * File.new("testfile").path #=> "testfile" * File.new("/tmp/../tmp/xxx", "w").path #=> "/tmp/../tmp/xxx" *