devctrl.utility.file_io.get_next_filename#

get_next_filename(filepath)[source]#

If the filepath does not exists, returns the filepath. If it exists append ‘-<N>’, where <N> is the lowest number so that filepath-<N> does not exist.