Azure / Azure/Azure-DataFactory

Copy activity with "preserve zip file name as folder" and relative paths

Open
#221 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
529
Forks
623
PR merge metrics
No merged PRs in 30d

Description

I have a dataset pointing to a fileshare folder with a structure like this:
sourcedatasetroot\somefolder\somezip.zip
sourcedatasetroot\someotherfolder\someotherzip.zip
sourcedatasetroot\project1\somefolder\somezip.zip

These are copied to another dataset pointint to a datalake using a copy activity.

I dont want the zip file names to end up as directories, so I have unchecked "preserve zip file name as folder", but this also removes the relative folders.

I would expect unchecking "preserve zip file name as folder" to result in a folder structure on the target as:
targetdatasetroot\somefolder\
targetdatasetroot\someotherfolder\
targetdatasetroot\project1\somefolder\

but instead they are copied as
targetdatasetroot\
targetdatasetroot\
targetdatasetroot\

Checking "preserve zip file name as folder" I would get this structure:
targetdatasetroot\somefolder\somezip.zip\
targetdatasetroot\someotherfolder\someotherzip.zip\
targetdatasetroot\project1\somefolder\somezip.zip\

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.