lib/daengine/teamsite_metadata_parser.rb in daengine-0.4.7.2 vs lib/daengine/teamsite_metadata_parser.rb in daengine-0.4.7.3
- old
+ new
@@ -131,11 +131,12 @@
if Dir.exist?(path) # dont throw away assets if we can't locate the dir
asset_docs.each do |doc|
#exclude manifest_file
unless doc['path'].match('\/manifest\/')
file = File.join(path, doc['path'])
- if(!File.exists?(file))
+ if(!File.exist?(file))
# use just the filename
+ Daengine.log "Cant find file #{file}, trying with just the path and filename", "info"
file = File.join(path, doc['path'].split('/').last)
end
#exclude digital_asset_files that are not in *Teamsite Staging*
if File.exist?(file)
docs << doc
\ No newline at end of file