Skip to content

Commit

Permalink
[HWORKS-1802] Exporting model on windows with directories in the mode…
Browse files Browse the repository at this point in the history
…l directory creates invalid upload path (#398) (#404)
  • Loading branch information
robzor92 authored Nov 18, 2024
1 parent 20bca94 commit 0d0757d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/hsml/engine/model_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _upload_local_model(
# we need to replace the local path prefix with the hdfs path prefix (i.e., /srv/hops/....../root with /Projects/.../)
remote_base_path = root.replace(
from_local_model_path, to_model_files_path
)
).replace(os.sep, "/")
for d_name in dirs:
self._engine.mkdir(remote_base_path + "/" + d_name)
n_dirs += 1
Expand Down

0 comments on commit 0d0757d

Please sign in to comment.