Skip to content

Commit

Permalink
fix: use createFolder method (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau committed May 17, 2024
2 parents 081864c + 45ad9cb commit 0789f22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geetools/Asset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def mkdir(self, parents=False, exist_ok=False) -> Asset:
# 2 option either there is 1 single element in the list or all the parents are included
# we need to walk it in reversed to make sure the parents are build first.
for p in reversed(to_be_created):
ee.data.createAsset({"type": "FOLDER"}, p.as_posix())
ee.data.createFolder(p.as_posix())

return self

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"earthengine-api",
"earthengine-api>=0.1.397", # support for ee.data.createFolder
"requests",
"pandas",
"geopandas",
Expand Down

0 comments on commit 0789f22

Please sign in to comment.