RenameDirectory

RenameyDirectory["dir1“, ”dir2"]
renames directory dir1 to dir2.