Skip to content

Preserve nested media table locations while copying datasets - #203

Merged
xrotwang merged 1 commit into
cldf:masterfrom
antonsoo:fix/copy-nested-media
Oct 26, 2026
Merged

xrotwang merged 1 commit into
cldf:masterfrom
antonsoo:fix/copy-nested-media

Conversation

@antonsoo

Copy link
Copy Markdown
Contributor

Dataset.copy() changes table URLs to destination basenames before reading the source MediaTable. A valid dataset with tables/media.csv therefore fails looking for media.csv in the source root.

Copy local media while the original table URLs are still available. The regression uses the existing media dataset, moves its MediaTable into a subdirectory, and checks copied content after relocation as well as unchanged source content.

The full suite passes on Python 3.12 and 3.9: 205 tests each. This also composes with #202: together they preserve all 64 recorded-data copy configurations, including nested and compressed media tables.

@xrotwang
xrotwang merged commit d912060 into cldf:master Oct 26, 2026
4 checks passed
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.

2 participants