Sha256: fdf2c5f62953a35c63259e1d2716fad63598f406928c673718598dd12b6f6a19

Contents?: true

Size: 656 Bytes

Versions: 9

Compression:

Stored size: 656 Bytes

Contents

 # this code is to reproduce the note name
 def copygutenbergfilename
 
   
   if ! @a_viewgutenberg.empty? 
   
     sourcefile =  $rwdgutenberg_directory + "/" + @a_viewgutenberg + ".gut"
     begin  
     if File.exist?(sourcefile)
      if ! @a_changegutenbergdata.empty? 
       distfile = $rwdgutenberg_directory + "/" + @a_changegutenbergdata + ".gut"
       File.copy(sourcefile,distfile)
       @gutenbergfilechangeresult = "#{@a_changegutenbergdata} Created"
       else
        @gutenbergfilechangeresult = "need distination filename"
       end
     end
     rescue
      @gutenbergfilechangeresult = "Copy Error"
     end
   end     
  end


Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
bigtinker-0.94 code/superant.com.gutenberg/copyfilename.rb
bigtinker-0.93 code/superant.com.gutenberg/copyfilename.rb
rwdgutenberg-0.04 code/superant.com.gutenberg/copyfilename.rb
rwdgutenberg-0.03 code/superant.com.gutenberg/copyfilename.rb
rwdgutenberg-0.07 code/superant.com.gutenberg/copyfilename.rb
rwdgutenberg-0.09 code/superant.com.gutenberg/copyfilename.rb
rwdgutenberg-0.05 code/superant.com.gutenberg/copyfilename.rb
rwdgutenberg-0.08 code/superant.com.gutenberg/copyfilename.rb
rwdgutenberg-0.06 code/superant.com.gutenberg/copyfilename.rb