From 5e48af740d78ef0906fb528c5383d060945cd9a0 Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Fri, 12 Jan 2024 09:50:38 -0600 Subject: [PATCH] Silence user-defined path warning --- hsds/util/fileClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsds/util/fileClient.py b/hsds/util/fileClient.py index 5ff14c45..b803162d 100644 --- a/hsds/util/fileClient.py +++ b/hsds/util/fileClient.py @@ -190,7 +190,7 @@ async def put_object(self, key, data, bucket=None): raise HTTPNotFound() start_time = time.time() - filepath = self._getFilePath(bucket, key) + filepath = pp.normpath(self._getFilePath(bucket, key)) log.debug(f"fileClient.put_object({bucket}/{key} start: {start_time}") loop = asyncio.get_event_loop() try: