Skip to content

Commit

Permalink
Remove .DS_Store from agents list (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker authored Nov 19, 2023
1 parent 5d2865c commit 437f2ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions memgpt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,10 @@ def estimate_openai_cost(docs):


def list_agent_config_files():
"""List all agents config files"""
return os.listdir(os.path.join(MEMGPT_DIR, "agents"))
"""List all agent config files, ignoring dotfiles."""
files = os.listdir(os.path.join(MEMGPT_DIR, "agents"))
# remove dotfiles like .DS_Store
return [file for file in files if not file.startswith(".")]


def list_human_files():
Expand Down

0 comments on commit 437f2ea

Please sign in to comment.