generate_new_fname

nrv.backend.generate_new_fname(fname)[source]

Prevent overwriting existing files. if the filename exists, add a number or add one to the number at the end of the filename

Parameters:

fname (str) – name of the file to check