You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`file`: File content as bytes or a file-like object
282
+
283
+
**Returns:** StorageObject
284
+
285
+
##### `download(name: str) -> bytes`
286
+
Downloads a file from YepCode storage.
287
+
288
+
**Parameters:**
289
+
-`name`: Name of the file to download
290
+
291
+
**Returns:** File content as bytes
292
+
293
+
##### `delete(name: str) -> None`
294
+
Deletes a file from YepCode storage.
295
+
296
+
**Parameters:**
297
+
-`name`: Name of the file to delete
298
+
299
+
**Returns:** None
300
+
301
+
##### `list() -> List[StorageObject]`
302
+
Lists all files in YepCode storage.
303
+
304
+
**Returns:** List of StorageObject
305
+
306
+
#### Types
307
+
308
+
```python
309
+
classStorageObject:
310
+
name: str# File name
311
+
size: int# File size in bytes
312
+
md5_hash: str# MD5 hash of the file
313
+
content_type: str# MIME type
314
+
created_at: str# Creation timestamp (ISO8601)
315
+
updated_at: str# Last update timestamp (ISO8601)
316
+
link: str# Download link
317
+
318
+
classCreateStorageObjectInput:
319
+
name: str# File name
320
+
file: Any # File content (bytes or file-like)
321
+
```
322
+
240
323
## License
241
324
242
325
All rights reserved by YepCode. This package is part of the YepCode Platform and is subject to the [YepCode Terms of Service](https://yepcode.io/terms-of-use).
0 commit comments