Skip to content

Commit

Permalink
fix: ignore data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushkamat committed Mar 26, 2022
1 parent 335df64 commit 3d15a5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions latch/services/register/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ def _register_serialized_pkg(ctx: RegisterCtx, serialize_dir: Path) -> dict:
for dirname, dirnames, fnames in os.walk(ctx.pkg_root):
for filename in fnames:
file = Path(dirname).resolve().joinpath(filename)
# ignore data folder
if ctx.pkg_root.joinpath("data") in file.parents:
continue
key = str(file.relative_to(ctx.pkg_root))
commit_files[key] = open(file, "rb")

Expand Down

0 comments on commit 3d15a5b

Please sign in to comment.