Skip to content

Commit

Permalink
Merge pull request #17 from biplovbhandari/master
Browse files Browse the repository at this point in the history
added output from delete operation
  • Loading branch information
samapriya authored Sep 13, 2023
2 parents ed6cd55 + 27fdd6e commit bec0e9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions geeadd/geeadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,11 @@ def cancel_tasks(tasks):
def delete(ids):
try:
print("Recursively deleting path: {}".format(ids))
subprocess.call(
"earthengine rm -r {}".format(ids), shell=True, stdout=subprocess.PIPE
)
# subprocess.call(
# "earthengine rm -r {}".format(ids), shell=True, stdout=subprocess.PIPE
# )
process_output = subprocess.run(["earthengine", "rm", "-r", "{}".format(ids)], capture_output=True, text=True)
print("output from commandline: {}".format(process_output.stdout))
except Exception as e:
print(e)

Expand Down

0 comments on commit bec0e9d

Please sign in to comment.