Method AppendFileCount
AppendFileCount(string)
Appends a file count suffix to a file name without modifying its original extension.
public static string AppendFileCount(string path)
Parameters
path
stringThe file name on which to append the suffix.
Returns
- string
The new file name where
path
has been modified to end with the number of files starting with the specified file name in the containing folder but without modifying the file extension.