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: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static string EnsureUniqueFilename(
string sFilename
)
Public Shared Function EnsureUniqueFilename (
sFilename As String
) As String
public:
static String^ EnsureUniqueFilename(
String^ sFilename
)
Parameters
- sFilename
- Type: SystemString
Candidate filename
Return Value
Type:
StringNew filename which does not yet exist
See Also