mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
sync: fix tests on backends which can't have empty directories
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user