Skip to content

[bug] Conan 2 omits empty directories when compressing a package #16378

@MichalCermakx

Description

@MichalCermakx

Describe the bug

Hi Conan team, James,

I have a use-case, where I am using conan for a tool with empty folders that are required for proper tool execution.
I found this old ticket #8013 , discussing the same issue in conan 1. Based on the response, I understand this was a planed update for the conan 2.

But even conan 2 is not handling empty folders. Those are in the package folder but are not propagated into conan_package.tgz

Please check the attached example -
empty212ed808c0279.zip

Package folder:
image
conan_package.tgz (note missing empty_folder folder):
image

Thank you,
Michal

How to reproduce it

Add a empty folder to package and check if it is inside of conan_package.tgz

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions