Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #12730: Moving policies to their final position (last step of policies writing) could be improved #1955

Conversation

ncharles
Copy link
Member

@@ -670,8 +670,8 @@ class Cf3PromisesFileWriterServiceImpl(
if (src.isDirectory()) {
val dest = new File(backupFolder)
if (dest.isDirectory) {
// force deletion of previous backup
FileUtils.forceDelete(dest)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the first call of forceDelete is to check if parameter is a directory, and if so, call deleteDirectory

This won't be a big change at all, but it'll be a small dropplet in the ocean od possible improvement

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 7a1933c into Normation:branches/rudder/4.1 Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants