Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug uploading empty directories for deepmodeling/dpgen#1180 (#322)
Items in `directory_list` are dealt with in the same way as `file_list` during `_walk_directory()`. However, items in it were not converted back to relavent path pattern while `file_list` did, causing bug when uploading an empty directory. In DP-GEN process, each Lammps task contains an empty `traj` directory, and thus, it will be passed into `tar.add()` with wrong `ii` and moreover, wrong `arcname`. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information