We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0256e6a commit 6afd7caCopy full SHA for 6afd7ca
Plugins/AWSLambdaPackager/Plugin.swift
@@ -307,8 +307,12 @@ private struct Configuration: CustomStringConvertible {
307
self.verboseLogging = verboseArgument
308
309
if let outputPath = outputPathArgument.first {
310
+ #if os(Linux)
311
+ var isDirectory: Bool = false
312
+ #else
313
var isDirectory: ObjCBool = false
- guard FileManager.default.fileExists(atPath: outputPath, isDirectory: &isDirectory), isDirectory.boolValue
314
+ #endif
315
+ guard FileManager.default.fileExists(atPath: outputPath, isDirectory: &isDirectory)
316
else {
317
throw Errors.invalidArgument("invalid output directory '\(outputPath)'")
318
}
0 commit comments