Sha256: 877a5f81cf06f4ef1611b92218be0ee926e45798f41607936c82417293c3b827
Contents?: true
Size: 518 Bytes
Versions: 7
Compression:
Stored size: 518 Bytes
Contents
# this code is to change the contact name def changenamedata oldName = $addressfiles_directory + "/" + @a_viewnamedata + ".nam" if ! @a_changenamedata.empty? newName = $addressfiles_directory + "/" + @a_changenamedata + ".nam" File.rename(oldName, newName) oldphotoName = $addressfiles_directory + "/" + @a_viewnamedata + ".jpg" newphotoName = $addressfiles_directory + "/" + @a_changenamedata + ".jpg" if File.exist?(oldphotoName) File.rename(oldphotoName, newphotoName) end end end
Version data entries
7 entries across 7 versions & 2 rubygems