Skip to content

Instantly share code, notes, and snippets.

@kreeger
Created February 7, 2023 23:12
Show Gist options
  • Save kreeger/75c35921d786b279d050483bbdce33c3 to your computer and use it in GitHub Desktop.
Save kreeger/75c35921d786b279d050483bbdce33c3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
glob = ARGV[0] || '*.*'
Dir[glob].each do |f|
time = File.mtime(f)
File.utime(time, time, f)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment