fn to rename a whole directory at once

Work in progress. Not yet working.