It likely cannot rename files/folders on a network share because they are not the same as a physical file. This is especially true when your talking about file locking/sharing. I suggest you just run this against a real physical file location and then share the result after your done organizing it.