if (/^-/.test(dir)) {
    if (dir.split('.')[0].length === 5) {
      raw = `${dir.substr(1)},S`
    } else {
      raw = `${dir.substr(1)},W`