Sha256: b11a588582f1e3b7686fb6ffb12ecb8effe5f5665514b4d9c2430ecad6fa1a76
Contents?: true
Size: 556 Bytes
Versions: 8
Compression:
Stored size: 556 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
8 entries across 8 versions & 1 rubygems