-
Notifications
You must be signed in to change notification settings - Fork 219
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
Extra empty sub folders created when using --recursive and --preserve-permissions #1630
Comments
Hey @nickjacobsen , I see that you're trying to transfer files from one blob storage account (ADLS Gen2) to another. The Are you saying that AzCopy created empty folders which were not present at the source location? |
It transferred all the files, folders and permissions as expected, however, in addition to the files and folders, it created an empty directory structure replicating the original within the root directory of the original structure. So in my case I copied a directory which has 4 sub-directories as below root_directory
What I ended up with
|
Hmm, that's strange. Can you please share the log with me. The email is |
I've just done a test without using a SAS token for auth to the destination and it still gives the same outcome. |
I observed the same behavior. I was going to raise an issue for that but found the issue is already opened for this. The described behavior happens only when you want to copy data between two data lake storage accounts with the "--preserve-permissions" flag added to preserve ACLs, and only when you want to copy a specific directory from a container. When you synchronize whole containers (not a specific directory within a container) the issue does not occur. |
We are running into the same issue. Can someone from Microsoft please take a look at this? |
Fix released in AzCopy |
Which version of the AzCopy was used?
Note: The version is visible when running AzCopy without any argument
AzCopy 10.13.0
Which platform are you using? (ex: Windows, Mac, Linux)
Windows
What command did you run?
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
azcopy.exe copy "https://.blob.core.windows.net/<source_container>//?" "https://.blob.core.windows.net/<destination_container>/?" --preserve-permissions --recursive ;
What problem was encountered?
The source and destination were two different (ADLS Gen2) Azure Storage Containers
It copies empty folder structure to the destination, in the .
An empty recursive structure is replicated one directory down.
If we have source:
-- File1
Destination has
-- File1
-- source directory (this is created; and any others in the recursion of the source)
In creating the extra directory it gets permissions errors. that are related to the creation of the extra directory
How can we reproduce the problem in the simplest way?
Run the command between two different contaners.
Have you found a mitigation/solution?
If I leave off the --preserve-permissions it doesn't create the extra directory but I also don't get the permission propagated.
The text was updated successfully, but these errors were encountered: