'how to export a empty directory?

I need export all files include a empty directory in test_data directory, use below filegroup not export that empty directory.

package(default_visibility = ["//visibility:public"])
filegroup(
    name = "exported_testdata",
    srcs = glob(["**"]),
)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source