Splitted copyPath function into copyFolder() & copyFile()