//TODO check if the root dir is already set. if so all files must be copied.