Could -h aka --no-dereference be supported?

Open
#171 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
ruby

Research direction

Start by locating FileUtils.touch and its existing option handling and tests. Compare the requested -h/--no-dereference behavior with the linked Unix example, then verify that touching a symlink changes the link timestamp rather than the target timestamp.

Written by the indexing model from the issue text.

Description

Could -h aka --no-dereference be supported?

This can change the timstamp of symlinks to whatever I points at.

I had to use system "touch". Would be nicer to use ruby directly though.

Example:

https://unix.stackexchange.com/questions/63876/changing-the-timestamp-of-a-symlink

Dominant language
Ruby
Stars
69
Forks
37
Avg merge
5h 34m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/fileutils

All issues in ruby/fileutils

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.