Added support for copying directories and sub directories