Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(data-package-view): ensure all subfolders with the same name are created #2577

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

vchendrix
Copy link
Collaborator

Previously, the addFilesAndFolders function did not correctly handle the creation of subfolders with the same name. This fix ensures that all subfolders are created properly by constructing the full path for each folder and checking against the pathMap to avoid duplicates.

  • Updated the addFilesAndFolders function to construct the full path for each folder.
  • Ensured that the pathMap is updated with the correct paths for all subfolders.
  • Added detailed comments to the addFilesAndFolders function for better readability and maintenance.

This resolves the issue where subfolders with the same name were not being created correctly.

Closes #2442

…created

Previously, the `addFilesAndFolders` function did not correctly handle the
creation of subfolders with the same name. This fix ensures that all
subfolders are created properly by constructing the full path for each
folder and checking against the `pathMap` to avoid duplicates.

- Updated the `addFilesAndFolders` function to construct the full path for each folder.
- Ensured that the `pathMap` is updated with the correct paths for all subfolders.
- Added detailed comments to the `addFilesAndFolders` function for better readability and maintenance.

This resolves the issue where subfolders with the same name were not being created correctly.

Closes NCEAS#2442
@robyngit robyngit changed the base branch from main to develop December 5, 2024 14:44
@vchendrix
Copy link
Collaborator Author

@robyngit @rushirajnenuji let me know if you have any questions. I am happy to work with you to get this resolved. This is a critical fix for us as we will not be able to offer support for hierarchical dataset viewing until this is resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hierarchical view incorrectly handling files in a subdirectory
3 participants