diff options
Diffstat (limited to 'Drop Serve/DropZone.m')
| -rw-r--r-- | Drop Serve/DropZone.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Drop Serve/DropZone.m b/Drop Serve/DropZone.m index 79c1fe6..56efb08 100644 --- a/Drop Serve/DropZone.m +++ b/Drop Serve/DropZone.m @@ -7,6 +7,7 @@ // #import "DropZone.h" +#import "Server.h" @implementation DropZone @@ -61,13 +62,15 @@ return NO; } - NSURL *path = [NSURL fileURLWithPath:file isDirectory:isDirectory]; + NSURL *url = [NSURL fileURLWithPath:file isDirectory:isDirectory]; if (!isDirectory) { - path = [path URLByDeletingLastPathComponent]; + url = [url URLByDeletingLastPathComponent]; } - NSLog(@"%@", path); + NSLog(@"%@", url); + + [Server serveAtPath:[url path]]; } return YES; |
