Skip to content

Commit

Permalink
improve path check (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
thangckt authored Oct 6, 2024
1 parent 25668e7 commit da8e4d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dpdispatcher/contexts/ssh_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ def __init__(
self.init_local_root = local_root
self.init_remote_root = remote_root
self.temp_local_root = os.path.abspath(local_root)
assert os.path.isabs(remote_root), "remote_root must be a abspath"
assert os.path.isabs(
os.path.realpath(remote_root)
), "remote_root must be a abspath"
self.temp_remote_root = remote_root
self.remote_profile = remote_profile
self.remote_root = None
Expand Down

0 comments on commit da8e4d8

Please sign in to comment.