7zip-pure-js-web-worker
7zip-pure-js-web-worker copied to clipboard
Permission problems with deep directories
If you make a 7z archive like this:
index.txt
a/b/c.txt
and try to extract it with the web worker, it doesn't work - you get a "permission denied" error. Is there something wrong with the filesystem?
Hi, erislett! Execuse me for a long responce. Have you tried your archive here?
https://blog.slava.online/archive/7z/ ?
I've tested. It seems to be ok.
I tried it on your link, this is what i get:
Calling stub instead of signal()
Calling stub instead of signal()
7-Zip (a) 15.09 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-10-16
p7zip Version 15.09 beta (locale=C,Utf16=off,HugeFiles=off,32 bits,1 CPU LE)
Scanning the drive for archives:
0M Scan /data/
1 file, 154 bytes (1 KiB)
Extracting archive: /data/archive.7z
--
Path = /data/archive.7z
Type = 7z
Physical Size = 154
Headers Size = 154
Solid = -
Blocks = 0
0%
ERROR: Can not open output file : Permission denied : /result/a/b/c.txt
0% 2 . a/b/c.txt
Sub items Errors: 1
Archives with Errors: 1
Sub items Errors: 1
Calling stub instead of signal()
Calling stub instead of signal()
ready!
Time: 1318
This is what I did to reproduce:
mkdir tmp
cd tmp
touch index.txt
mkdir -p a/b
touch a/b/c.txt
7z a archive.7z
I tried to upload the archive that was generated here: http://s000.tinyupload.com/download.php?file_id=07271242749141463279&t=0727124274914146327912992
Also, if I run the extract command with p7zip locally (not in the browser, but in the desktop terminal) it works fine.
Ok. Thanks. You are right. It is needed to create subfolders in the code.
I've got exactly the same issue: ERROR: Can not open output file : Permission denied : ...
for a folder layout.
Is there any known way to work-around? :thinking:
4 years ago already, time flies!
I built my own library eventually: https://github.com/eirslett/shoeset does that one work for you?