I have found an issue with folderitem and the case of file and folder names. It seems that the results of Nativepath and Name are not consistent with the actual file name if a lowercase string is used in Getfolderitem, at least in Windows (have not tested in Mac).
[code] Dim s1 as string = “C:/Temp/Mytest Name.tiff” 'this is the correct name
Dim f1 as FolderItem = GetFolderItem(s1)
if f1 <> nil and f1.Exists then
Label1.Text = f1.NativePath
'shows C:/Temp/Mytest Name.tiff
Dim s2 as string = Lowercase(s1)
Dim f2 as FolderItem = GetFolderItem(s2)
if f2 <> nil and f2.Exists then
label2.Text = f2.NativePath
'shows c:/Temp/mytest name.tiff
I think NativePath,DisplayName and Name should always display the correct name even if a lowercase string has been passed, and in the worst scenario it should not mix lowercase and uppercase like in the second label c:/Temp/mytest name.tiff
Am I missing something?