Method: Synqa::ContentLocation#getExistingCachedContentTreeFile

Defined in:
lib/synqa.rb

#getExistingCachedContentTreeFileObject

Get the cached content file name, if specified, and if the file exists



759
760
761
762
763
764
765
766
767
768
769
# File 'lib/synqa.rb', line 759

def getExistingCachedContentTreeFile
  if cachedContentFile == nil
    puts "No cached content file specified for location"
    return nil
  elsif File.exists?(cachedContentFile)
    return cachedContentFile
  else
    puts "Cached content file #{cachedContentFile} does not yet exist."
    return nil
  end
end