From d25f3e58ec4591ec884b43c6ac215699925ea726 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 10 Oct 2020 20:36:09 +0200 Subject: DropZone: Exit drop handler if the dropped file doesn't exist --- Drop Serve/DropZone.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Drop Serve/DropZone.m b/Drop Serve/DropZone.m index 6ae6e49..79c1fe6 100644 --- a/Drop Serve/DropZone.m +++ b/Drop Serve/DropZone.m @@ -57,6 +57,8 @@ fileExistsAtPath:file isDirectory:&isDirectory]) { NSLog(@"%@ not found", file); + + return NO; } NSURL *path = [NSURL fileURLWithPath:file isDirectory:isDirectory]; -- cgit v1.2.3