提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
429 B

  1. /**
  2. * @author Toru Nagashima
  3. * @copyright 2016 Toru Nagashima. All rights reserved.
  4. * See LICENSE file in root directory for full license.
  5. */
  6. 'use strict'
  7. const fs = require('fs')
  8. const path = require('path')
  9. try {
  10. fs.symlinkSync(
  11. path.resolve(__dirname, '../test/lib'),
  12. path.resolve(__dirname, '../test-workspace/tasks/lib'),
  13. 'junction'
  14. )
  15. } catch (err) {
  16. if (err.code !== 'EEXIST') {
  17. throw err
  18. }
  19. }