My question is about the availability of something like 'FSUtil.Rename( src, dest )'
I have created a script which takes a path (parameter, or active tab) and recursively descends renaming every directory to a new name, then back.
(Why? I use a cloud service which occasionally gives permission errors when writing into directories. Renaming a directory, then renaming it back resets the permissions.. no clue why, and the cloud provider really hasn't been much help.)
While scanning, I call
command.addLine("rename x to y") followed by
command.addline("rename y to x") then
command.Run() and check the return code. A single failure stops the loop.
However, any failure currently brings up the "rename" error dialog, and depending on what button I hit I sometimes end up in the Advanced Rename dialog.
I really want a simple rename() function which succeds or fails silently, and returns the result to my script.