Justin-Xiang commented on code in PR #3563:
URL: 
https://github.com/apache/incubator-opendal/pull/3563#discussion_r1390131028


##########
bindings/python/tests/test_async_copy.py:
##########
@@ -93,7 +94,7 @@ async def test_async_copy_nested(service_name, operator, 
async_operator):
     assert target_content is not None
     assert target_content == content
     await async_operator.delete(source_path)
-    await async_operator.delete(target_path)
+    await async_operator.remove_all(f'{target_path.split("/")[0]}/')

Review Comment:
   In this case, maybe the solution is to new a variable and save the path of 
the directory? like this:
   ```python
   target_directory = f"random_file_{str(uuid4())}/"
   target_path=f"{target_directory}{str(uuid4())}/{str(uuid4())}"
   ...
   await async_operator.remove_all(target_directory)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to