Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows paths use backspace when you use the code node js pathmodules #245

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChaseWhite3
Copy link

Without this line the depth is not correct on windows

AzureAD\ChaseWhite added 2 commits October 8, 2018 10:21
Copy link

@pankaj-arunsingh pankaj-arunsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good windows path fix.

@B3none
Copy link

B3none commented Mar 25, 2019

Perhaps fix the spacing:

if (process.platform === "win32") {
    fileDepth = relativeFileDir.split('\\').length;
} else {
    fileDepth = relativeFileDir.split('/').length;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants