Skip to content

Commit deac65d

Browse files
authored
Fix Invalid Blob Name (#1608)
1 parent 058bd5b commit deac65d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/zc_traverser_s3.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ func (t *s3Traverser) IsDirectory(isSource bool) bool {
6464
}
6565

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

0 commit comments

Comments
 (0)