mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
This reverts commit 8cf15cc931.
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
import * as path from 'path'
|
||||
|
||||
export const isParentDir = function (parent: string, dir: string) {
|
||||
const relative = path.relative(parent, dir)
|
||||
return !!relative && !relative.startsWith('..') && !path.isAbsolute(relative)
|
||||
}
|
||||
Reference in New Issue
Block a user