@@ -439,7 +439,7 @@ public class SSLService : SSLServiceDelegate {
439439 // - First the CA...
440440 if let caFile = configuration. caCertificateFilePath {
441441
442- if !NSFileManager . default ( ) . fileExists ( atPath: caFile) {
442+ if !FileManager . default ( ) . fileExists ( atPath: caFile) {
443443
444444 throw SSLError . fail ( Int ( ENOENT) , " CA Certificate doesn't exist in current directory. " )
445445 }
@@ -448,7 +448,7 @@ public class SSLService : SSLServiceDelegate {
448448 if let caPath = configuration. caCertificateDirPath {
449449
450450 var isDir : ObjCBool = false
451- if !NSFileManager . default ( ) . fileExists ( atPath: caPath, isDirectory: & isDir) {
451+ if !FileManager . default ( ) . fileExists ( atPath: caPath, isDirectory: & isDir) {
452452
453453 throw SSLError . fail ( Int ( ENOENT) , " CA Certificate directory path doesn't exist. " )
454454 }
@@ -461,7 +461,7 @@ public class SSLService : SSLServiceDelegate {
461461 // - Then the certificate file...
462462 if let certFilePath = configuration. certificateFilePath {
463463
464- if !NSFileManager . default ( ) . fileExists ( atPath: certFilePath) {
464+ if !FileManager . default ( ) . fileExists ( atPath: certFilePath) {
465465
466466 throw SSLError . fail ( Int ( ENOENT) , " Certificate doesn't exist at specified path. " )
467467 }
@@ -470,7 +470,7 @@ public class SSLService : SSLServiceDelegate {
470470 // - Now the key file...
471471 if let keyFilePath = configuration. keyFilePath {
472472
473- if !NSFileManager . default ( ) . fileExists ( atPath: keyFilePath) {
473+ if !FileManager . default ( ) . fileExists ( atPath: keyFilePath) {
474474
475475 throw SSLError . fail ( Int ( ENOENT) , " Key file doesn't exist at specified path. " )
476476 }
@@ -479,7 +479,7 @@ public class SSLService : SSLServiceDelegate {
479479 // - Finally, if present, the certificate chain path...
480480 if let chainPath = configuration. certificateChainFilePath {
481481
482- if !NSFileManager . default ( ) . fileExists ( atPath: chainPath) {
482+ if !FileManager . default ( ) . fileExists ( atPath: chainPath) {
483483
484484 throw SSLError . fail ( Int ( ENOENT) , " Certificate chain doesn't exist at specified path. " )
485485 }
0 commit comments