Class Fusioncharts::Exporter::SaveHelper
In: lib/fusioncharts/exporter/save_helper.rb
Parent: Object

Helps in saving the files on server. Contains methods to check whether server is ready for save or not, method to generate a unique filename

Methods

Public Class methods

Checks whether the server is ready for saving the file.

  • parameter folder_to_save : The complete path to the folder on the server where the file needs to be saved.
  • parameter filename : The name of the file in which to save.
  • parameter overwrite : Whether to overwrite an existing file of the same name or not.
  • parameter intelligent_file_naming : If file with same name already exists, whether we should use intelligent file naming to create a new file name.

Generates Unique filename with suffix either a TIMESTAMP or RANDOM number

  • parameter complete_file_path_without_ext : The path to the file including the filename excluding the extension.
  • parameter extension : The extension for the file.

[Validate]