Returns a file name that is unique in the directory.

If there is a collision, integers will be added.
Example: path "~/", name "MyFile.txt"
If MyFile.txt already exists in ~/, this endpoint will return MyFile (1).txt,
assuming MyFile (1).txt also doesn't exist.

Language