handling uploading/copying directories