mkdir#

geetools.Asset.mkdir(parents=False, exist_ok=False, image_collection=False)#

Create a container asset from the Asset path.

Note

A container is an asset containing other assets, it can be a Folder or an ImageCollection.

Parameters:
  • parents – If True, create all the parents of the folder. Defaults to False.

  • exist_ok – If True, do not raise an error if the folder already exists. Defaults to False.

  • image_collection (bool) – If True, create an image collection asset. Otherwise create a folder asset. Defaults to False.

Return type:

Asset

Examples

asset = ee.Asset("projects/ee-geetools/assets/folder")
asset.mkdir(parents=True, exist_ok=True)