lib/daengine/teamsite_metadata_parser.rb in daengine-0.4.7.1 vs lib/daengine/teamsite_metadata_parser.rb in daengine-0.4.7.2
- old
+ new
@@ -131,9 +131,13 @@
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))
+ # use just the filename
+ 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
if(File.mtime(file) > last_read)
begin
\ No newline at end of file