9 lines
No EOL
289 B
Ruby
9 lines
No EOL
289 B
Ruby
After do
|
|
require "find"
|
|
Find.find( APP_CONFIG[:photos_path] ) { |path|
|
|
Dir.delete( path ) if path != APP_CONFIG[:photos_path] && File.directory?(path)
|
|
}
|
|
Find.find( APP_CONFIG[:thumbs_path] ) { |path|
|
|
Dir.delete( path ) if path != APP_CONFIG[:thumbs_path] && File.directory?(path)
|
|
}
|
|
end |