@@ -11,7 +11,7 @@ import {HorizontalDivider} from '/snippets/HorizontalDivider.mdx';
11
11
import {GithubLinkNote } from ' /snippets/GithubLinkNote.mdx' ;
12
12
import {Attribute } from ' /snippets/Attribute.mdx' ;
13
13
14
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L32-L264 " />
14
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L32-L269 " />
15
15
16
16
17
17
## Attributes
@@ -28,6 +28,10 @@ import {Attribute} from '/snippets/Attribute.mdx';
28
28
<HorizontalDivider light = { true } />
29
29
<Attribute type = { <><span >list[</span > <a href = " /api-reference/typescript/TSExport" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >TSExport</a > <span >]</span ></> } description = " Get a recursive list of all exports in files container." />
30
30
31
+ ### <span className = " text-primary" >file_names</span >
32
+ <HorizontalDivider light = { true } />
33
+ <Attribute type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >list[str]</code > } description = " Get a list of all file names in the directory." />
34
+
31
35
### <span className = " text-primary" >functions</span >
32
36
<HorizontalDivider light = { true } />
33
37
<Attribute type = { <><span >list[</span > <a href = " /api-reference/core/Function" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Function</a > <span >]</span ></> } description = " Get a recursive list of all functions in files container." />
@@ -97,7 +101,7 @@ Get an export by name in files container (supports only typescript).
97
101
98
102
### <span className = " text-primary" >get_file</span >
99
103
Get a file by its name relative to the directory.
100
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L219-L233 " />
104
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L224-L238 " />
101
105
102
106
103
107
<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >TFile | None</code > } description = " " />
@@ -137,7 +141,7 @@ Get an import statement by name in files container.
137
141
138
142
### <span className = " text-primary" >get_subdirectory</span >
139
143
Get a subdirectory by its name (relative to the directory).
140
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L235-L237 " />
144
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L240-L242 " />
141
145
142
146
143
147
<Return return_type = { <><a href = " /api-reference/core/Directory" style = { {fontWeight: " inherit" , fontSize: " inherit" } } >Directory</a > <span >| None</span ></> } description = " " />
@@ -161,15 +165,15 @@ Get a list of all files and subdirectories in the directory.
161
165
162
166
### <span className = " text-primary" >remove</span >
163
167
Remove all the files in the files container.
164
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L247-L250 " />
168
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L252-L255 " />
165
169
166
170
167
171
<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >None</code > } description = " " />
168
172
169
173
170
174
### <span className = " text-primary" >rename</span >
171
175
Rename the directory.
172
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L252-L256 " />
176
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L257-L261 " />
173
177
174
178
175
179
<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >None</code > } description = " " />
@@ -185,7 +189,7 @@ Get a list of all top level subdirectories in the directory.
185
189
186
190
### <span className = " text-primary" >update_filepath</span >
187
191
Update the filepath of the directory and its contained files.
188
- <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L239-L245 " />
192
+ <GithubLinkNote link = " https://github.com/codegen-sh/codegen/blob/develop/src/codegen/sdk/core/directory.py#L244-L250 " />
189
193
190
194
191
195
<Return return_type = { <code className = " text-sm bg-gray-100 px-2 py-0.5 rounded" >None</code > } description = " " />
0 commit comments