v0.2.54..v0.2.55 changeset ShapefileWriter.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/ShapefileWriter.cpp b/hoot-core/src/main/cpp/hoot/core/io/ShapefileWriter.cpp
index 12f717f..251e9ad 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/ShapefileWriter.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/ShapefileWriter.cpp
@@ -44,6 +44,7 @@ using namespace geos::geom;
#include <hoot/core/io/OgrOptions.h>
#include <hoot/core/schema/MetadataTags.h>
#include <hoot/core/util/Factory.h>
+#include <hoot/core/util/FileUtils.h>
#include <hoot/core/util/HootException.h>
#include <hoot/core/util/Log.h>
#include <hoot/core/visitors/ElementConstOsmMapVisitor.h>
@@ -132,7 +133,7 @@ void ShapefileWriter::open(const QString& url)
{
if (QDir(url).exists() == false)
{
- if (QDir(".").mkpath(url) == false)
+ if (FileUtils::makeDir(url) == false)
{
throw HootException("Error creating directory for writing: " + url);
}