Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

FileUtils#ln_sr

(::FileUtils::pathlist src, ::FileUtils::path dest, ?target_directory: ::boolish, ?noop: ::boolish, ?verbose: ::boolish) -> void
ln_sr(src, dest, target_directory: true, force: nil, noop: nil, verbose: nil)

Like FileUtils.ln_s, but create links relative to dest.

See also .ln_sr #ln_sf #makedirs #ln_s also in 4.0 · 3.4 · 3.3 · 3.2