Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ceba57

Browse files
committedDec 21, 2012
Don't generate directory resources.
1 parent 62f84ae commit 9ceba57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/main/scala/nl/flotsam/monkeyman/MonkeymanGenerator.scala

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ object MonkeymanGenerator extends MonkeymanTool("monkeyman generate") with Loggi
4040

4141
private def generate(config: MonkeymanConfiguration, targetDir: File) {
4242
targetDir.mkdirs()
43-
for (resource <- config.registry.allResources) {
43+
for {
44+
resource <- config.registry.allResources
45+
if resource.contentType != "application/directory"
46+
} {
4447
val targetFile = new File(targetDir, resource.path)
4548
using(resource.open) {
4649
info("Generating {}", resource.path)

0 commit comments

Comments
 (0)
Please sign in to comment.