Omaha #5559: Fix directory creation bug in ProductFileUtil.writeFile.
Change-Id: Ibd27d86423fd54c6b8f1cd0ab8a20a3a3d72160f Former-commit-id: 9a1599b7746fd353e752b8fa120b1268b915ccdf
This commit is contained in:
parent
12873364a5
commit
81b98af568
1 changed files with 2 additions and 1 deletions
|
@ -57,6 +57,7 @@ import com.raytheon.viz.core.mode.CAVEMode;
|
||||||
* 11 Feb 2010 4132 ryu Initial creation
|
* 11 Feb 2010 4132 ryu Initial creation
|
||||||
* Nov 12, 2015 4834 njensen Changed LocalizationOpFailedException to LocalizationException
|
* Nov 12, 2015 4834 njensen Changed LocalizationOpFailedException to LocalizationException
|
||||||
* Feb 05, 2016 5242 dgilling Remove calls to deprecated Localization APIs.
|
* Feb 05, 2016 5242 dgilling Remove calls to deprecated Localization APIs.
|
||||||
|
* Apr 07, 2016 5559 dgilling Fix directory creation bug in writeFile.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -141,7 +142,7 @@ public class ProductFileUtil {
|
||||||
|
|
||||||
static public void writeFile(String text, File file) throws IOException {
|
static public void writeFile(String text, File file) throws IOException {
|
||||||
Path filePath = file.toPath();
|
Path filePath = file.toPath();
|
||||||
Files.createDirectories(filePath);
|
Files.createDirectories(filePath.getParent());
|
||||||
|
|
||||||
try (Writer out = Files.newBufferedWriter(filePath,
|
try (Writer out = Files.newBufferedWriter(filePath,
|
||||||
StandardCharsets.UTF_8)) {
|
StandardCharsets.UTF_8)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue