files_from_dir() — anthropic-sdk-python Function Reference
Architecture documentation for the files_from_dir() function in _files.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 37bbdfd0_9aad_546f_72b4_865c38bbd035["files_from_dir()"] b21d65c1_1f1b_5699_6638_2ab0107a8fb1["_files.py"] 37bbdfd0_9aad_546f_72b4_865c38bbd035 -->|defined in| b21d65c1_1f1b_5699_6638_2ab0107a8fb1 8fe3fdd6_df01_8782_278e_e5a14e6db0c1["_collect_files()"] 37bbdfd0_9aad_546f_72b4_865c38bbd035 -->|calls| 8fe3fdd6_df01_8782_278e_e5a14e6db0c1 style 37bbdfd0_9aad_546f_72b4_865c38bbd035 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/lib/_files.py lines 11–16
def files_from_dir(directory: str | os.PathLike[str]) -> list[FileTypes]:
path = Path(directory)
files: list[FileTypes] = []
_collect_files(path, path.parent, files)
return files
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does files_from_dir() do?
files_from_dir() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/_files.py.
Where is files_from_dir() defined?
files_from_dir() is defined in src/anthropic/lib/_files.py at line 11.
What does files_from_dir() call?
files_from_dir() calls 1 function(s): _collect_files.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free