Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
410 bytes
|
Line | |
---|
1 | // on windows, either \ or / are valid directory separators.
|
---|
2 | // on unix, \ is a valid character in filenames.
|
---|
3 | // so, on windows, and only on windows, we replace all \ chars with /,
|
---|
4 | // so that we can use / as our one and only directory separator char.
|
---|
5 |
|
---|
6 | const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform
|
---|
7 | module.exports = platform !== 'win32' ? p => p
|
---|
8 | : p => p && p.replace(/\\/g, '/')
|
---|
Note:
See
TracBrowser
for help on using the repository browser.