-
Notifications
You must be signed in to change notification settings - Fork 222
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
azcopy copy does not follow symbolic links in subdirectories #791
Comments
@adreed-msft can you take a look? |
I'm having some trouble reproducing this one myself. I'm curious, @Soushi-Atsumi-- Have you tried removing the trailing \ on your local path? We've had some issues with our argument parsing framework WRT that on Windows. Also, are these symlinks made with |
Hi,
The same issue occurs even if I remove the trailing .
Surely, this issue does not occur in Linux. I tried it now.
I created symlinks with |
Interesting! Are there any other logs to stdout? (For instance, "Failed to resolve symlink", "Ignored already linked directory", etc.) |
This is the all logs to stdout. I replaced the home directory as ~.
|
I can confirm the same behaviour on WSL. |
What's the target of the symlink? A file or a directory? |
Hi @JohnRusk
The target is a file. azcopy works correctly when it targets a symbolic link of a directory. |
That's a known bug, I'm sorry. It doesn't currently work on symlinks to files. It's on our list to fix. |
Which version of the AzCopy was used?
AzCopy 10.3.2
Which platform are you using? (ex: Windows, Mac, Linux)
Windows 10 Pro 64bit
What command did you run?
azcopy.exe copy ".\dir2\" "https://host/blob/?$key" --follow-symlinks --recursive --from-to=LocalBlob
What problem was encountered?
failed to perform copy command due to error: no transfers were scheduled because no files matched the specified criteria
How can we reproduce the problem in the simplest way?
Try uploading any symbolic links from the parent directory with --recursive option.
Have you found a mitigation/solution?
Use wildcards instead of applying the option. This code works well.
azcopy.exe copy ".\dir2\*" "https://host/blob/?$key" --follow-symlinks --from-to=LocalBlob
However, only symbolic links in the first subdirectory are copied, and symbolic links in subdirectories of subdirectories are not copied.
The text was updated successfully, but these errors were encountered: