Skip to content

Unpackerr Folders - disable recursion doesn't work #558

@ShadowTox

Description

@ShadowTox

Tried UN_FOLDER_0_DISABLE_RECURSION=true in environment, and Unpackerr recurses the folder or packed file and unpacks and also leaves the original 'zip' file in the unpacked folder. I have tried removing the environment and set it in the config file, but same result. I have also tried to set the values to false, just in the hope it would not recurse, but it recurses.

many example folder/zip configs used, but in all cases it recurses and unpacks.
examples:
folder path: /downloads/temp.zip
inside the temp.zip is:
folder1 - contains zipfile1.zip
folder2 - textfile1.txt

extracted folder (after) Unpackerr does its thing:
temp.zip_unpackerr (don't remember the exact _unpackerr it appends)
inside the temp.zip_unpackerr folder
zipfile1 (a folder with all the contents)
folder1 (a folder with the zipfile1.zip still in it)
folder2 (a folder with the textfile1.txt in it)

so basically it always recurses all zip files in the original zip file and unzips them in the level1 of the new folder it creates, regardless of the true/false setting.

edit:
in the log with the DISABLE_RECURSION=true, there is no log entry stating recursion is 'off'

just created a good test files attached
packed file: (level1 has a zip file in it, Therzie_warfare all unzipped files, Therzie_armory is a zipped file in level1 folder)
Image

output file: (the test folder has the correct stuff, the two therzie folders are the unzipped 'nested' zip files that shouldn't be there)
Image

log file:

_unpackerred.test.zip.txt

docker compose:
docker_compose.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions