Click or drag to resize
MediaLibraryHelperEnsureUniqueFileName Method
Ensures unique path for the specified file. If the directory with the specified name already exist in the target location new path with the added suffix is returned. The suffix consist of '_' sign and the number.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 13.0.131
Syntax
C#
public static string EnsureUniqueFileName(
	string path
)

Parameters

path
Type: SystemString
Complete path to the file to ensure

Return Value

Type: String
See Also