Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
256 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 | const path = require('path');
|
---|
| 3 |
|
---|
| 4 | module.exports = path_ => {
|
---|
| 5 | let cwd = process.cwd();
|
---|
| 6 |
|
---|
| 7 | path_ = path.resolve(path_);
|
---|
| 8 |
|
---|
| 9 | if (process.platform === 'win32') {
|
---|
| 10 | cwd = cwd.toLowerCase();
|
---|
| 11 | path_ = path_.toLowerCase();
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | return path_ === cwd;
|
---|
| 15 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.