Var theFile As New FolderItem(myLocalPath, FolderItem.PathModes.Shell)
Is so slow - it’s part for a file search app that calls this for each file it’s found, so often, quite a lot of looping going on - profiling code shows this is the culprit and remming it out makes execution times almost instant inside the loop.
It’s on a Mac Kevin - latest verz of Xojo. Files on local and smb share same - obviously quicker when files are local! Reverting to using shells to get what I need in this instance - taking the long way around - production pressure etc!
You might also try the Chilkat plugin, the FileAccess Class is one that doesn’t need a paid license to use.
Specifically DirCreate and DirAutoCreate. DirAutoCreate is one of my favorites because it will recursively create folders to ensure your path exists. So if you need C:\Temp\Test123\NewFolder and C:\Temp doesn’t exist, it will create all three nested folders.