FIX: dir should be folder name.