Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class 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.1 · 4.0 · 3.3 · 3.2