Skip to content

Commit

Permalink
Merge pull request #27 from jalex/master
Browse files Browse the repository at this point in the history
Fix #22 - Always use Junctions on Windows
  • Loading branch information
timoxley authored Dec 9, 2016
2 parents 578e5d8 + 03dcf8a commit b7ecfeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ var assert = require('assert')
var map = require('map-limit')
var os = require('os')

// Use junctions on Windows < Vista (6.0),
// Vista and later support regular symlinks.
if (os.platform() === 'win32' && parseInt(os.release()) < 6) {
// Use junctions on Windows
if (os.platform() === 'win32') {
var symlinkType = 'junction'
} else {
symlinkType = 'dir'
Expand Down

0 comments on commit b7ecfeb

Please sign in to comment.