Skip to content

Commit

Permalink
fix: exclude yv8 models
Browse files Browse the repository at this point in the history
  • Loading branch information
danellecline committed Oct 3, 2023
1 parent 1ca902d commit d39f240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ async def upload_files_to_s3(bucket: str, local_path: str, s3_path: str, suffixe
err(f"Could not find {local_path}")
return 0

# Recursively glob all files in the local path
# Recursively glob all files in the local path, excluding anything with 'yolov8' in the path
for obj in pathlib.Path(local_path).rglob('*'):
if obj.is_file():
if obj.is_file() and 'yolov8' not in obj.parts:
for s in suffixes:
if obj.suffix == s:
if await upload_file(obj, bucket, f'{s3_path}/{obj.name}'):
Expand Down

0 comments on commit d39f240

Please sign in to comment.