@@ -240,7 +240,7 @@ class AsyncBlueprintOps:
240240 >>> runloop = AsyncRunloopSDK()
241241 >>> obj = await runloop.object_storage.upload_from_dir(
242242 ... "./",
243- ... ttl=timedelta(hours =1),
243+ ... ttl=timedelta(weeks =1),
244244 ... )
245245 >>> blueprint = await runloop.blueprint.create(
246246 ... name="my-blueprint",
@@ -406,7 +406,7 @@ async def upload_from_dir(
406406 * ,
407407 name : Optional [str ] = None ,
408408 metadata : Optional [Dict [str , str ]] = None ,
409- ttl : Optional [timedelta ] = None ,
409+ ttl : Optional [timedelta ] = timedelta ( weeks = 1 ) ,
410410 ignore : TarFilter | None = None ,
411411 ** options : Unpack [LongRequestOptions ],
412412 ) -> AsyncStorageObject :
@@ -420,7 +420,8 @@ async def upload_from_dir(
420420 :type name: Optional[str]
421421 :param metadata: Optional key-value metadata
422422 :type metadata: Optional[Dict[str, str]]
423- :param ttl: Optional Time-To-Live, after which the object is automatically deleted
423+ :param ttl: Optional Time-To-Live, after which the object is automatically deleted.
424+ Defaults to 1 week. Pass ``None`` explicitly for no expiration.
424425 :type ttl: Optional[timedelta]
425426 :param ignore: Optional tar filter function compatible with
426427 :meth:`tarfile.TarFile.add`. If provided, it will be called for each
0 commit comments