sync: fix tests on backends which can't have empty directories

This commit is contained in:
Nick Craig-Wood 2024-06-08 10:40:42 +01:00
parent 5921bb0efd
commit 76798d5bb1

View File

@ -97,6 +97,10 @@ func testCopyMetadata(t *testing.T, createEmptySrcDirs bool) {
t.Skip("Skipping as metadata not supported")
}
if createEmptySrcDirs && !features.CanHaveEmptyDirectories {
t.Skip("Skipping as can't have empty directories")
}
const content = "hello metadata world!"
const dirPath = "metadata sub dir"
const emptyDirPath = "empty metadata sub dir"