Difficulty with New Framework FolderItem from URLPath for renaming directories

The following code doesn’t seem to work:

dim f as new Xojo.IO.FolderItem(txtTargetURL, 2)

Xojo.IO.FolderItem.PathTypeURL seems inaccessible and GetFolderItem in the New Framework doesn’t seem to be supported on the Web only Desktop.

So in order to rename directories in a multi-platform Web App, seems like I must use the classic framework’s FolderItem to convert a Directory’s URLPath to a nativepath to pass it to the new framework FolderItem to rename the Directory.

Or have I missed a step?