use

name "olddirectory" as "newdirectory"

this option using for files or directory

incluying path name

ok