mirror of
https://github.com/rclone/rclone.git
synced 2024-12-01 21:04:56 +01:00
4258ad705e
The LinkBox API does not allow searching by more than 25 Unicode characters in the name, for this reason it is currently impossible to work with files and folders named longer than 8 Unicode chars (if encoded in base32). This fix queries all files in a directory for long names and checks their names one by one, thus solving the issue. Fixes #7542
20 lines
448 B
Go
20 lines
448 B
Go
// Test Linkbox filesystem interface
|
|
package linkbox_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/rclone/rclone/backend/linkbox"
|
|
"github.com/rclone/rclone/fstest/fstests"
|
|
)
|
|
|
|
// TestIntegration runs integration tests against the remote
|
|
func TestIntegration(t *testing.T) {
|
|
fstests.Run(t, &fstests.Opt{
|
|
RemoteName: "TestLinkbox:",
|
|
NilObject: (*linkbox.Object)(nil),
|
|
// Linkbox doesn't support leading dots for files
|
|
SkipLeadingDot: true,
|
|
})
|
|
}
|