Commit 647af5a
Pathname#lutime を追加 (Ruby 3.2)
Pathname#lutime がるりまに未収録だった。File.lutime(atime, mtime, self.to_s)
と同じで、Pathname#utime と違いシンボリックリンクそのものの時刻を変更する
(リンク先をたどらない)。
実機で登場バージョンを確認した結果、2.7 / 3.1 には存在せず 3.2 で追加された
ため #@SInCE 3.2 で分岐した。
既存の Pathname#utime / #lchmod と同じ「File.xxx と同じです」+ #@#noexample
の書式に合わせ、Pathname#utime の直後に配置した。
実機でシンボリックリンクを作って確認し、lutime ではリンク自身の時刻だけが
変わりリンク先は変わらないこと、utime ではリンク先が変わることを確認済み。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0f53391 commit 647af5a
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
765 | 782 | | |
766 | 783 | | |
767 | 784 | | |
| |||
0 commit comments