Skip to content

Commit

Permalink
Persisting .toml and Removing file_list.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
similato87 committed Jan 5, 2024
1 parent 1c985df commit f9ec794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpt_engineer/applications/cli/file_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
from gpt_engineer.core.files_dict import FilesDict

IGNORE_FOLDERS = {"site-packages", "node_modules", "venv"}
FILE_LIST_NAME = "file_list.txt"
FILE_LIST_NAME = "file_selection.toml"


class DisplayablePath(object):
Expand Down Expand Up @@ -488,7 +488,7 @@ def tree_style_file_selector(input_path: str) -> List[str]:
relative_path = os.path.relpath(path.path, input_path)
tree_dict["files"][relative_path] = {"selected": False} # Set default as False

toml_file = root_path / "file_selection.toml"
toml_file = DiskMemory(metadata_path(input_path)).path / "file_selection.toml"
with open(toml_file, "w") as f:
toml.dump(tree_dict, f)

Expand Down

0 comments on commit f9ec794

Please sign in to comment.