Skip to content

Commit

Permalink
Fix Invalid Blob Name (#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsha-msft committed Jan 5, 2022
1 parent 058bd5b commit deac65d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/zc_traverser_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ func (t *s3Traverser) IsDirectory(isSource bool) bool {
}

func (t *s3Traverser) Traverse(preprocessor objectMorpher, processor objectProcessor, filters []ObjectFilter) (err error) {
invalidAzureBlobName := func (objectKey string) bool {
invalidAzureBlobName := func(objectKey string) bool {
/* S3 object name is invalid if it ends with period or
one of virtual directories in path ends with period.
This list is not exhaustive
*/
*/
return strings.HasSuffix(objectKey, ".") ||
strings.Contains(objectKey, "/.")
strings.Contains(objectKey, "./")
}
invalidNameErrorMsg := "Skipping S3 object %s, as it is not a valid Blob name. Rename the object and retry the transfer"
// Check if resource is a single object.
Expand Down

0 comments on commit deac65d

Please sign in to comment.