Skip to content

Option for ignoring original tree preceding of the target directory #9

@bdalina54

Description

@bdalina54

Is there an option for ignoring or inclusion the original tree preceding of the target directory?

$this->zip->zip_files( array('main/path2/path3' , 'main/deep2/deep3'), 'path/save_here.zip');

inside the save_here.zip

-main/path2/path3
-main/deep2/deep3

$this->zip->zip_files( array('main/path2/path3' , 'main/deep2/deep3'), 'path/save_here.zip', FALSE);

Hope there is a third parameter for the option (TRUE or FALSE) for the inclusion or ignoring tree preceding

Expected result inside the save_here.zip

save_here.zip
-path3
-deep3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions