mirror of https://github.com/cirruslabs/tart.git
`copyTree`/`copyInto` treated `contentsOfDirectory` errors as an empty listing (`try? … ?? []`), so a permission/I/O failure inside a dropped folder was silently ignored and the drop reported success — producing an incomplete copy in the guest with no warning (data-lossy for users who expect the whole folder to transfer). Let the read error propagate instead. copyTree's do/catch already removes the partial `dst` and rethrows, so an unreadable subtree now aborts the drop and cleans up rather than half-completing. Adds a regression test covering an unreadable nested directory. |
||
|---|---|---|
| .. | ||
| Util | ||
| DigestTests.swift | ||
| DirectoryShareTests.swift | ||
| DiskImageFormatTests.swift | ||
| DiskutilTests.swift | ||
| DockerConfigTests.swift | ||
| DropCancellationTokenTests.swift | ||
| DropGeometryTests.swift | ||
| DropProgressCopierTests.swift | ||
| FileLockTests.swift | ||
| GuestDropParseTests.swift | ||
| LayerizerTests.swift | ||
| LeaseTest.swift | ||
| LeasesTests.swift | ||
| MACAddressResolverTests.swift | ||
| RegistryTests.swift | ||
| RemoteNameTests.swift | ||
| TokenResponseTests.swift | ||
| URLAbsolutizationTests.swift | ||
| URLAccessDateTests.swift | ||
| VMConfigTests.swift | ||
| WWWAuthenticateTests.swift | ||