SQLite Forum

Extract files from sqlar with a directory prepended
Login
https://www.sqlite.org/sqlar.html

It shows the following command on how to extract an sqlar file.

```
sqlite3 example.sqlar -Ax
```

I'd like to extract the files but prepend the path with some directory name.

For example, if there is a file called myfile.txt, I'd like it to be extracted to mydir/myfile.txt instead of to ./myfile.txt. For files starting with '/', they are considered as illegal, errors should be printed and nothing should be extracted.

Could anybody show me the sqlite3 code to achieve this? If it is not possible to achieve this in raw sqlit3 code, can anybody show me the code in python asqw?