archiveFiles

Returns n file names based on path for archived files.

@safe
string[]
archiveFiles
(
size_t n
,
string path
)

Examples

assert(1.archiveFiles("dir/log.ext") == ["dir/log-1.ext"]);
assert(10.archiveFiles("log").startsWith("log-01"));
assert(10.archiveFiles("log").endsWith("log-10"));

Meta