Home / Function/ async_files_from_dir() — anthropic-sdk-python Function Reference

async_files_from_dir() — anthropic-sdk-python Function Reference

Architecture documentation for the async_files_from_dir() function in _files.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  73ced425_e238_4e62_3e4a_712abab05e2d["async_files_from_dir()"]
  b21d65c1_1f1b_5699_6638_2ab0107a8fb1["_files.py"]
  73ced425_e238_4e62_3e4a_712abab05e2d -->|defined in| b21d65c1_1f1b_5699_6638_2ab0107a8fb1
  ef8f0faa_c480_0152_1c90_cc9bca4c390b["_async_collect_files()"]
  73ced425_e238_4e62_3e4a_712abab05e2d -->|calls| ef8f0faa_c480_0152_1c90_cc9bca4c390b
  style 73ced425_e238_4e62_3e4a_712abab05e2d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/lib/_files.py lines 28–33

async def async_files_from_dir(directory: str | os.PathLike[str]) -> list[FileTypes]:
    path = anyio.Path(directory)

    files: list[FileTypes] = []
    await _async_collect_files(path, path.parent, files)
    return files

Subdomains

Frequently Asked Questions

What does async_files_from_dir() do?
async_files_from_dir() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/_files.py.
Where is async_files_from_dir() defined?
async_files_from_dir() is defined in src/anthropic/lib/_files.py at line 28.
What does async_files_from_dir() call?
async_files_from_dir() calls 1 function(s): _async_collect_files.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free