create directory inside moveFile function

create directory inside moveFile function