WHFSFolder::GenerateUniqueName (open)

Generate an unique name, based on a base name

Syntax

LOADLIB "mod::system/lib/internal/whfs/objects.whlib";

STRING FUNCTION GenerateUniqueName(STRING suggestion, RECORD options)

Parameters

STRING suggestion

Suggested name

RECORD options

Options

ignoreobject

Existing object to ignore (ie if renaming a file), defaults to 0

safename

Generate a URL safe name (defaults to true)

Return value

STRING

A name that doesn't exist in this folder yet, based on the suggestion