code: function (isPublicDir){
      var dirpath = path.join(isPublicDir ? publicDir : sourceDir, local_dir_name);
  
      if( fs.existsSync(dirpath)){
          log.w('Dir exists,can\'t symlink:'.red + dirpath);
          return ;
      }
      // 确保父目录存在
      var parent = path.resolve(dirpath, '..');
      if( ! fs.existsSync(parent)){
          fs.mkdirSync(parent)
      }
  
      fs.symlinkSync(local_dir, dirpath, 'junction');
      if (!fs.existsSync(dirpath)) {
          log.e('Can\'t make link fail!'.red);
          log.w('Maybe do not have permission.'.red);
          if (process.platform === 'win32') {
              log.e('Please ensure that run in administrator mode!'.red);
          }
      }
        
  }
docs: 链接目录