mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Fixed bugs
This commit is contained in:
1 parent
73a345ab6d
commit
3fec403411
1 file changed
+6
-5
@@ -318,12 +318,13 @@ class SourceGenerator {
|
||||
return try dirPath.children()
|
||||
.filter {
|
||||
if $0.isDirectory {
|
||||
if project.options.generateEmptyDirectories {
|
||||
return true
|
||||
} else {
|
||||
let children = try $0.children().filter(isIncludedPath)
|
||||
return !children.isEmpty
|
||||
let children = try $0.children()
|
||||
|
||||
if children.isEmpty {
|
||||
return project.options.generateEmptyDirectories
|
||||
}
|
||||
|
||||
return !children.filter(isIncludedPath).isEmpty
|
||||
} else if $0.isFile {
|
||||
return isIncludedPath($0)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user