Desired backup filename, including extension.
Filenames already present in the target remote directory.
Optionaloptions: { caseInsensitive?: boolean }Matching options for remote filesystem semantics.
OptionalcaseInsensitive?: booleanWhen true, treats names as equal regardless of case (SMB).
A filename that does not collide with existingFileNames under the chosen rules.
When every slot from the base name through MAX_BACKUP_FILE_COPY_SUFFIX is already occupied (not expected in practice).
Picks the first available backup filename in a Windows-style duplicate series. When
sermon.mp4already exists, returnssermon (1).mp4, thensermon (2).mp4, and so on.