rewrite copy-style-directory-method