Click or drag to resize
UtilitiesEnsureUniqueFilename Method
Ensure that the target file does not yet exist. If it does, generates a new filename with an embedded identifier, e.g. out[1].txt instead. Attempts to ensure filename is creatable; e.g. if a path component needs to be a directory but is a file already, injects [#] into that path component.

Namespace: Fiddler
Assembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax
public static string EnsureUniqueFilename(
	string sFilename
)

Parameters

sFilename
Type: SystemString
Candidate filename

Return Value

Type: String
New filename which does not yet exist
See Also