aboutsummaryrefslogtreecommitdiff
path: root/Sources/Watcher.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/Watcher.swift')
-rw-r--r--Sources/Watcher.swift3
1 files changed, 1 insertions, 2 deletions
diff --git a/Sources/Watcher.swift b/Sources/Watcher.swift
index c7ca85a..3b08efd 100644
--- a/Sources/Watcher.swift
+++ b/Sources/Watcher.swift
@@ -1,6 +1,5 @@
import Logging
import ServiceLifecycle
-import SystemPackage
import _NIOFileSystem
struct Watcher: Service {
@@ -16,7 +15,7 @@ struct Watcher: Service {
do {
isDownloading = try await FileSystem.shared.withDirectoryHandle(atPath: self.directory) {
try await $0.listContents().contains {
- $0.name.extension?.hasSuffix(self.suffix) ?? false
+ $0.name.string.hasSuffix(self.suffix)
}
}
} catch is CancellationError {