code/superant.com.rwdmovies/renamemovie.rb in rwdmovies-0.93 vs code/superant.com.rwdmovies/renamemovie.rb in rwdmovies-0.94
- old
+ new
@@ -1,13 +1,12 @@
- # this code is to change the record name
- def changemoviedata
- oldName = $rwdmovies_directory + "/" + @a_moviefilename + ".nam"
- newName = $rwdmovies_directory + "/" + @a_changemoviedata + ".nam"
- File.rename(oldName, newName)
- oldphotoName = $rwdmovies_directory + "/" + @a_moviefilename + ".jpg"
- newphotoName = $rwdmovies_directory + "/" + @a_changemoviedata + ".jpg"
- if File.exist?(oldphotoName)
- File.rename(oldphotoName, newphotoName)
- end
- end
-
+# this code is to change the record name
+def changemoviedata
+ oldName = $rwdmovies_directory + "/" + @a_moviefilename + ".nam"
+ newName = $rwdmovies_directory + "/" + @a_changemoviedata + ".nam"
+ File.rename(oldName, newName)
+ oldphotoName = $rwdmovies_directory + "/" + @a_moviefilename + ".jpg"
+ newphotoName = $rwdmovies_directory + "/" + @a_changemoviedata + ".jpg"
+ if File.exist?(oldphotoName)
+ File.rename(oldphotoName, newphotoName)
+ end
+end