Skip to content

Commit

Permalink
fix tmp_dir always being created
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-soleadify committed Dec 30, 2021
1 parent 62bd02b commit 82b1a1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mlflow/store/artifact/hdfs_artifact_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def download_artifacts(self, artifact_path, dst_path=None):
"""

hdfs_base_path = _resolve_base_path(self.path, artifact_path)
local_dir = _tmp_dir(dst_path)
if dst_path and os.path.exists(dst_path):
local_dir = os.path.abspath(dst_path)
else:
local_dir = _tmp_dir(dst_path)

with hdfs_system(scheme=self.scheme, host=self.host, port=self.port) as hdfs:

Expand Down

0 comments on commit 82b1a1d

Please sign in to comment.