From aa781adeb2f50332a934aaa518b53e0e4a187f60 Mon Sep 17 00:00:00 2001 From: Amir Abbas Date: Fri, 24 Feb 2017 16:53:59 +0330 Subject: [PATCH] =?UTF-8?q?Fixed=20searchFiles()=20from=20string,=20fixing?= =?UTF-8?q?=20=E2=80=9CBEGINSWITH=E2=80=9D=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FileProvider.podspec | 2 +- FileProvider.xcodeproj/project.pbxproj | 4 ++-- Sources/FileProvider.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FileProvider.podspec b/FileProvider.podspec index b9613d6..e46a4d9 100644 --- a/FileProvider.podspec +++ b/FileProvider.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "FileProvider" - s.version = "0.14.2" + s.version = "0.14.3" s.summary = "FileManager replacement for Local and Remote (WebDAV/Dropbox/OneDrive/SMB2) files on iOS and macOS." # This description is used to generate tags and improve search results. diff --git a/FileProvider.xcodeproj/project.pbxproj b/FileProvider.xcodeproj/project.pbxproj index 2daf22e..077d400 100644 --- a/FileProvider.xcodeproj/project.pbxproj +++ b/FileProvider.xcodeproj/project.pbxproj @@ -597,7 +597,7 @@ 799396601D48B7BF00086753 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - BUNDLE_VERSION_STRING = 0.14.2; + BUNDLE_VERSION_STRING = 0.14.3; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; @@ -627,7 +627,7 @@ 799396611D48B7BF00086753 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - BUNDLE_VERSION_STRING = 0.14.2; + BUNDLE_VERSION_STRING = 0.14.3; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; diff --git a/Sources/FileProvider.swift b/Sources/FileProvider.swift index caf37ae..9946ee2 100644 --- a/Sources/FileProvider.swift +++ b/Sources/FileProvider.swift @@ -138,7 +138,7 @@ public protocol FileProviderBasic: class { extension FileProviderBasic { public func searchFiles(path: String, recursive: Bool, query: String, foundItemHandler: ((FileObject) -> Void)?, completionHandler: @escaping ((_ files: [FileObject], _ error: Error?) -> Void)) { - let predicate = NSPredicate(format: "name BEHINSWITH[c] %@", query) + let predicate = NSPredicate(format: "name BEGINSWITH[c] %@", query) self.searchFiles(path: path, recursive: recursive, query: predicate, foundItemHandler: foundItemHandler, completionHandler: completionHandler) }