|
|
|
|
|
by mbudde
4926 days ago
|
|
There's this example from the README which seems to do what you are asking for: Maid.rules do
rule 'Old files downloaded while developing/testing' do
dir('~/Downloads/*').each do |path|
if downloaded_from(path).any? {|u| u.match 'http://localhost'} && 1.week.since?(last_accessed(path))
trash(path)
end
end
end
end
|
|