You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
azcopy sync / azcopy copy
What problem was encountered?
Application writing the files writes first 0 byte files first before writing the actual file. The application is written by a third party and not under our control.
How can we reproduce the problem in the simplest way?
create a 0 byte file and sync/copy it using azcopy.
Have you found a mitigation/solution?
It would be great if azcopy supported a way to skip 0 byte files using e.g. a new flag --min-size or similar. Both for copy and sync.
The text was updated successfully, but these errors were encountered:
Hi @mweibel ! Thank you for sending a feature request, we will keep you posted if we choose to pick this up. In the meantime, I would like to suggest a few workarounds that may be helpful for your scenario. Since you want to exclude specific files, you may be able to leverage the --exclude-* flags we have, seen in this copy documentation and sync documentation.
In particular, I believe these flags will be the most useful: --exclude-path (string) Exclude these paths when copying. This option doesn't support wildcard characters (*). Checks relative path prefix(For example: myFolder;myFolder/subDirName/file.pdf). When used in combination with account traversal, paths don't include the container name.
--exclude-pattern (string) Exclude these files when copying. This option supports wildcard characters (*)
--exclude-regex (string) Exclude all the relative path of the files that align with regular expressions. Separate regular expressions with ';'.
Which version of the AzCopy was used?
10.22.1
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
azcopy sync / azcopy copy
What problem was encountered?
Application writing the files writes first 0 byte files first before writing the actual file. The application is written by a third party and not under our control.
How can we reproduce the problem in the simplest way?
create a 0 byte file and sync/copy it using azcopy.
Have you found a mitigation/solution?
It would be great if azcopy supported a way to skip 0 byte files using e.g. a new flag
--min-size
or similar. Both forcopy
andsync
.The text was updated successfully, but these errors were encountered: