#2414 added local transaction pattern to renamefolder - should be transaction safe