From 39eccde530289633c67c44a9e0fa54e78b6665af Mon Sep 17 00:00:00 2001 From: Peter van Hardenberg Date: Fri, 20 Oct 2017 09:22:33 -0700 Subject: [PATCH] pathSepS is broken on Windows Other parts of IPFS (specifically, for example, libipfs-kad-dht) assume that pathSep is '/'. This code assumes pathSep is determined by the operating system and therefore on Windows will be '\'. This patch is probably not the best solution to the problem (perhaps you should support both common path separators on all platforms?) but allows me to at least keep using libp2p on Windows for the time being. --- src/key.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key.js b/src/key.js index a97da49..e58060e 100644 --- a/src/key.js +++ b/src/key.js @@ -4,7 +4,7 @@ const path = require('path') const uuid = require('uuid/v4') -const pathSepS = path.sep +const pathSepS = '/' const pathSep = new Buffer(pathSepS, 'utf8')[0] /**