TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-08

Directory

class tensorplay.package.Directory(name: str, is_dir: bool)[source]

A file structure representation. Organized as Directory nodes that have lists of their Directory children. Directories for a package are created by calling PackageImporter.file_structure().

has_file(filename: str) → bool[source]

Checks if a file is present in a Directory.

Parameters:

filename (str) – Path of file to search for.

Returns:

If a Directory contains the specified file.

Return type:

bool

On this page

Ask DeepWiki