har-extractor
har-extractor copied to clipboard
unable to create a subdirectory as a file was created before by script itself
Hi, here is the end of the log :
unpkg.com/[email protected]
Error: ENOTDIR: not a directory, mkdir '/home/fabien/Prototypes/har-offline/unpkg.com/[email protected]/dist'
at Object.mkdirSync (node:fs:1400:3)
at make (/usr/lib/node_modules/har-extractor/node_modules/make-dir/index.js:61:12)
at module.exports.sync (/usr/lib/node_modules/har-extractor/node_modules/make-dir/index.js:84:9)
at /usr/lib/node_modules/har-extractor/lib/har-extractor.js:48:21
at Array.forEach (<anonymous>)
at extract (/usr/lib/node_modules/har-extractor/lib/har-extractor.js:41:28)
at Object.<anonymous> (/usr/lib/node_modules/har-extractor/bin/cmd.js:51:5)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32) {
errno: -20,
syscall: 'mkdir',
code: 'ENOTDIR',
path: '/home/fabien/Prototypes/har-offline/unpkg.com/[email protected]/dist'
}
Files and directories until that point were created properly. If I check
fabien@fabien-CORSAIR-ONE-i160:~/Prototypes/har-offline$ ls unpkg.com/[email protected] -l
-rw-rw-r-- 1 fabien fabien 107488 apr 2 09:50 unpkg.com/[email protected]
seems to be a file, not a directory. Maybe it's due to redirections.