projects
/
mir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
894fa4b
)
if the directory the file should be written is not existing, it is created now
author
idfx
<idfx>
Sat, 27 Apr 2002 14:42:15 +0000
(14:42 +0000)
committer
idfx
<idfx>
Sat, 27 Apr 2002 14:42:15 +0000
(14:42 +0000)
source/mircoders/producer/ContentProducer.java
patch
|
blob
|
history
diff --git
a/source/mircoders/producer/ContentProducer.java
b/source/mircoders/producer/ContentProducer.java
index
d25aa8b
..
9387a7b
100755
(executable)
--- a/
source/mircoders/producer/ContentProducer.java
+++ b/
source/mircoders/producer/ContentProducer.java
@@
-92,6
+92,10
@@
public class ContentProducer implements mir.producer.Producer {
try {
File file = new File(fileName);
+ File dir = new File(file.getParent());
+ if (!dir.exists()){
+ dir.mkdirs();
+ }
FileWriter fileWriter = new FileWriter(file);
PrintWriter printWriter = new PrintWriter(fileWriter);