add copy method in mergeLocalDirs()
fixed: arguments must be directory path