mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* docs(docs): start implementing docs website * update video url * add autogenerated codebase docs for backend * precommit * update links * fix config and video * gh actions * rename * workdirs * path * path * fix doc1 * redo markdown * docs * change main folder name * simplify readme * add back architecture * Fix lint errors * lint * update poetry lock --------- Co-authored-by: Jim Su <jimsu@protonmail.com>
41 lines
525 B
Markdown
41 lines
525 B
Markdown
---
|
|
sidebar_label: files
|
|
title: opendevin.files
|
|
---
|
|
|
|
## WorkspaceFile Objects
|
|
|
|
```python
|
|
class WorkspaceFile()
|
|
```
|
|
|
|
#### to\_dict
|
|
|
|
```python
|
|
def to_dict() -> Dict[str, Any]
|
|
```
|
|
|
|
Converts the File object to a dictionary.
|
|
|
|
**Returns**:
|
|
|
|
The dictionary representation of the File object.
|
|
|
|
#### get\_folder\_structure
|
|
|
|
```python
|
|
def get_folder_structure(workdir: Path) -> WorkspaceFile
|
|
```
|
|
|
|
Gets the folder structure of a directory.
|
|
|
|
**Arguments**:
|
|
|
|
- `workdir` - The directory path.
|
|
|
|
|
|
**Returns**:
|
|
|
|
The folder structure.
|
|
|