lib/file_systems/AppleCPM.rb in ripxplore-0.7.2 vs lib/file_systems/AppleCPM.rb in ripxplore-0.8.0

- old
+ new

@@ -125,10 +125,10 @@ [free_blocks,free_directory_entries] end def self.add_file(file_system_image,native_filetype_class,full_filename,file_contents,file_type=nil,aux_code=nil) - raise "{native_filetype_class} not supported on Apple CPM file system" if native_filetype_class.file_system_file_types[self].nil? + raise "#{native_filetype_class} not supported on Apple CPM file system" if native_filetype_class.file_system_file_types[self].nil? partial_filename,file_type=CPMFile.split_filename(full_filename) full_filename ="#{partial_filename}.#{file_type}" # puts "#{full_filename},#{partial_filename},#{file_type}" delete_file(file_system_image,full_filename) unless file_system_image.files[full_filename].nil? #so we can overwrite the file if it already exists free_blocks,free_directory_entries=find_free_space(file_system_image)