deepmodeling/dpdispatcher

Symlink directories are ignored in subdirectories of `forward_common_files` in SSHContext

LavendaRaphael opened this issue · 1 comments

Local directory tree like this

.
├── testdir
│ └── testlink-> ../../testsubdir

If I set forward_common_files=['testdir'], then in the remote directory, there will be no testdir and its subdirectories.
I think the problem is

for root, dirs, files in os.walk(file_name, topdown=False):

This might fix it:

         for root, dirs, files in os.walk(file_name, topdown=False, followlinks=True) :
njzjz commented

Could you submit a pull request?