Skip to content

Commit

Permalink
rename path to pathModule
Browse files Browse the repository at this point in the history
  • Loading branch information
ioedeveloper committed Mar 30, 2021
1 parent 980aa7a commit fcb0344
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/remix-ide/src/app/files/workspaceFileProvider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const FileProvider = require('./fileProvider')
const path = require('path')
const pathModule = require('path')

class WorkspaceFileProvider extends FileProvider {
constructor () {
Expand Down Expand Up @@ -43,9 +43,9 @@ class WorkspaceFileProvider extends FileProvider {
isSubDirectory (parent, child) {
if (!parent) return false
if (parent === child) return true
const relative = path.relative(parent, child)
const relative = pathModule.relative(parent, child)

return !!relative && relative.split(path.sep)[0] !== '..'
return !!relative && relative.split(pathModule.sep)[0] !== '..'
}

resolveDirectory (path, callback) {
Expand Down

0 comments on commit fcb0344

Please sign in to comment.