Skip to content

Commit dcb3ef7

Browse files
authored
include symlink folder when running export/deploy (#5256)
1 parent 54b3bf1 commit dcb3ef7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reflex/utils/build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _zip(
8383
files_to_zip: list[str] = []
8484
# Traverse the root directory in a top-down manner. In this traversal order,
8585
# we can modify the dirs list in-place to remove directories we don't want to include.
86-
for root, dirs, files in os.walk(root_dir, topdown=True):
86+
for root, dirs, files in os.walk(root_dir, topdown=True, followlinks=True):
8787
root = Path(root)
8888
# Modify the dirs in-place so excluded and hidden directories are skipped in next traversal.
8989
dirs[:] = [
@@ -112,7 +112,6 @@ def _zip(
112112
for file in root_dir.glob(glob)
113113
if file.name not in files_to_exclude
114114
]
115-
116115
# Create a progress bar for zipping the component.
117116
progress = Progress(
118117
*Progress.get_default_columns()[:-1],

0 commit comments

Comments
 (0)