Implemented copy file to directory.