Folderitem.name is returning the path

Windows 11 using Xojo 2024r4.1 webapp
session.docloc is a folderitem
When I add a folderitem using a string path like this.
session.docloc = New FolderItem("D:/data/" + session.dir + "/" + rs.column("file_loc").StringValue, FolderItem.PathModes.native)
Then session.docloc.name is returning the path, not just the filename.
Why is .name returning the full path?
Thanks

Try replacing / with \

1 Like

Yep, that was an easy fix. It works now. Thanks