mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
add more stuff to tmp turd list
This commit is contained in:
parent
75172f054d
commit
556bc9d2be
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -399,7 +399,7 @@ end
|
||||||
|
|
||||||
desc 'purge_tmp_turds'
|
desc 'purge_tmp_turds'
|
||||||
task :purge_tmp_turds => [:environment] do
|
task :purge_tmp_turds => [:environment] do
|
||||||
['neocities_screenshot*', 'RackMultipart*', 'neocities_saving_file*', 'newinstall-*', '*.dmp', 'davfile*'].each do |target|
|
['neocities_screenshot*', 'RackMultipart*', 'neocities_saving_file*', 'newinstall-*', '*.dmp', 'davfile*', 'magick*', '*.scan', '*.jpg'].each do |target|
|
||||||
Dir.glob("/tmp/#{target}").select {|filename| File::Stat.new(filename).ctime < (Time.now - 3600)}.each {|filename| FileUtils.rm(filename)}
|
Dir.glob("/tmp/#{target}").select {|filename| File::Stat.new(filename).ctime < (Time.now - 3600)}.each {|filename| FileUtils.rm(filename)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue