NSGAIIForDK change to deal with folder

If the folder is not exists, it create the folder automatically.