Files
OpenHands/docs/modules/python/opendevin/runtime/files.md
Robert Brennan fadcdc117e Migrate to new folder structure in preparation for refactor (#1531)
* fix up folder structure

* update docs

* fix imports

* fix imports

* fix imoprt

* fix imports

* fix imports

* fix imports

* fix test import

* fix tests

* fix main import
2024-05-02 17:01:54 +00:00

533 B

sidebar_label, title
sidebar_label title
files opendevin.runtime.files

WorkspaceFile Objects

class WorkspaceFile()

to_dict

def to_dict() -> Dict[str, Any]

Converts the File object to a dictionary.

Returns:

The dictionary representation of the File object.

get_folder_structure

def get_folder_structure(workdir: Path) -> WorkspaceFile

Gets the folder structure of a directory.

Arguments:

  • workdir - The directory path.

Returns:

The folder structure.