ruby / ruby/fileutils

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

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

Nobody has claimed this yet.

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

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

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.