Skip to content

Commit

Permalink
mfs: use native path even for mfs.
Browse files Browse the repository at this point in the history
Using only posix would work only if the only code doing path resolving was MFS, but store has several path.resolves which on windows breaks the compactibility and instead of directories we get files with path names similar to "c:\store\.." instead of it being separate directories.
  • Loading branch information
nodech committed Jun 17, 2022
1 parent 56b8ac3 commit 834dd78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
'use strict';

const assert = require('bsert');
const path = require('path');
const os = require('os');
const Path = path.posix || path;
const Path = require('path');

/*
* Constants
Expand Down

0 comments on commit 834dd78

Please sign in to comment.