-
Notifications
You must be signed in to change notification settings - Fork 257
Conversation
322b961
to
b7f3dd9
Compare
@@ -103,18 +103,20 @@ QString FileIo::pathFromUrl(QString const& _url) | |||
return path; | |||
} | |||
|
|||
void FileIo::makeDir(QString const& _url) | |||
bool FileIo::makeDir(QString const& _url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you change the semantics of this function, you should also change how it is used.
In most places where this is used, the assumption is that the directory can be used afterwards and is clear.
40a368c
to
12c0d6b
Compare
@@ -279,8 +279,12 @@ function copyFiles(path, target) | |||
continue | |||
var deployDir = target + dirs[i].fileName + "/" | |||
if (!fileIo.dirExists(deployDir)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This process now fails silently if the directory already exists.
abf61e7
to
d39a237
Compare
@@ -340,7 +349,11 @@ function generateFileName(name, extension) { | |||
function regenerateCompilationResult() | |||
{ | |||
fileIo.deleteDir(compilationFolder) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that safe to delete?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. This function is called when mix is autogenerating the compilation result. this will never delete content added by the user.
#311