Changeset 233
- Timestamp:
- 04/24/08 03:05:29 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/yet_another_index_structure/lib/picolena/templates/app/models/indexer.rb
r211 r233 10 10 :complete_path => complete_path, 11 11 :probably_unique_id => complete_path.base26_hash, 12 :file => File.basename(complete_path),12 :filename => File.basename(complete_path), 13 13 :basename => File.basename(complete_path, File.extname(complete_path)).gsub(/_/,' '), 14 14 :filetype => File.extname(complete_path), 15 : date=> File.mtime(complete_path).strftime("%Y%m%d%H%M%S")15 :modified => File.mtime(complete_path).strftime("%Y%m%d%H%M%S") 16 16 } 17 17 end … … 19 19 def index_every_directory(update=true) 20 20 log :debug => "Indexing every directory" 21 22 21 23 22 start=Time.now 24 23 @update = update
