Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for atime and ctime in --changed-within/--changed-before #393

Closed
Ruin0x11 opened this issue Jan 17, 2019 · 2 comments
Closed

Support for atime and ctime in --changed-within/--changed-before #393

Ruin0x11 opened this issue Jan 17, 2019 · 2 comments

Comments

@Ruin0x11
Copy link

I came across a situation where I specifically needed to find files with a recent ctime, but the --changed-within option implemented in #339 only supports mtime. It would be nice if there were an option for specifying which type of time to compare against. Implementation would probably entail adding a branch around https://github.com/kimsnj/fd/blob/master/src/walk.rs#L309 with a call to Metadata::accessed() or Metadata::created().

@tavianator
Copy link
Collaborator

Note that ctime is not creation time, it is "change time," i.e. the last time the file's metadata was changed.

@sharkdp
Copy link
Owner

sharkdp commented Sep 13, 2019

@Ruin0x11 Thank you for the feedback. There are no plans to implement this in fd (see discussion in #165).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants