|
@@ -292,20 +292,6 @@
|
|
|
process.nextTick(() => fs.lstat(pathArgument, callback))
|
|
|
}
|
|
|
|
|
|
- const { statSyncNoException } = fs
|
|
|
- fs.statSyncNoException = pathArgument => {
|
|
|
- const { isAsar, asarPath, filePath } = splitPath(pathArgument)
|
|
|
- if (!isAsar) return statSyncNoException(pathArgument)
|
|
|
-
|
|
|
- const archive = getOrCreateArchive(asarPath)
|
|
|
- if (!archive) return false
|
|
|
-
|
|
|
- const stats = archive.stat(filePath)
|
|
|
- if (!stats) return false
|
|
|
-
|
|
|
- return asarStatsToFsStats(stats)
|
|
|
- }
|
|
|
-
|
|
|
const { realpathSync } = fs
|
|
|
fs.realpathSync = function (pathArgument) {
|
|
|
const { isAsar, asarPath, filePath } = splitPath(pathArgument)
|