-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Hierarchical view incorrectly handling files in a subdirectory #2442
Comments
eml file content: |
Thanks for the detailed report @dschristianson! |
=
@dschristianson this is actuall the resource map xml. |
Thanks for the correction, @vchendrix! |
Further details on this issue. It seems that there are subdirectories that have the same name those directories are omiited from the view. Consider
Screenshot |
This issue is in The algorithm in sortedFilePathObj {
"": [
"wfsi-20241204T142642168641-4c9650328b48892",
"wfsi-20241204T223444303-a9c8d0a6a346c4f"
],
"Test-A": [
"wfsi-20241204T142643228234-971fef2a6dc9e72"
],
"Test-A/metadata": [
"wfsi-20241204T142642719179-874351c7deb64ab"
],
"Test-B": [
"wfsi-20241204T142644624152-cd7a2bcbabfe93b"
],
"Test-B/metadata": [
"wfsi-20241204T142644133339-403af611f1b4d7a"
],
"Test-C": [
"wfsi-20241204T142646035912-5df1d36d972959c"
],
"Test-C/metadata": [
"wfsi-20241204T142645512543-fbddfce261c91a1"
]
} |
HI @vchendrix - thanks for the additional details. Yes, that seems like a logic error in the |
…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
…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
Describe the bug
Dataset has hierarchical directory structure with multiple subdirectories. One particular subdirectory is not being displayed properly. It contains 35 files.
Upon loading the dataset, the individual files are displayed but not in the correct subdirectory. When the next directory up is closed and then reopened, the files are no longer viewable.
The following screenshot shows the initial view. Note: the full path is /supplementary_data/visualizations/locations/. The locations subdirectory is missing.
This next screenshot shows the view after the /supplementary_data/visualizations subdirectory is closed and then opened again. Note: the Burn<#>_Plot.html files are no longer shown.
Desktop:
Additional context
The downloaded dataset zip package has the correct directory structure.
I will attach the corresponding eml file in the following comment. The files are not sorted by directory, which @vchendrix and I believe should not matter.
The text was updated successfully, but these errors were encountered: