Remove the file at the specified path appended with the specified maxSuffix using a . as a separator. Then move the files with the suffixes .1 to .maxSuffix-1 so they have new suffixes from .2 to .maxSuffix. Finally, move path to path with a .1 suffix. Return 0 on success, and non-zero otherwise.
Declared in <bdls_filesystemutil.h>
static
int
rollFileChain(
std::string_view const& path,
int maxSuffix);