I am trying to copy directories from one place to another in a platform independent way. You see the directory i have contains some files in it as well as other directories. Basically this directory also has sub-directories.
Usually when i am copying an array of files this is what i usually do
The above code copies an array of files to the destination. The thing now is that i need to copy an array of directories to a destination. The thing with these directories is that contain sub-directories and i am not able to copy the array of directories.
Basically my question is how do i copy directories that contain files and sub-directories to a destination location?