Skip to content

Commit

Permalink
activate automatic deletion of temporary files
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Wallois authored and florianlacreuse committed Aug 29, 2024
1 parent b97fd16 commit c0d1c1b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@
import java.io.IOException;
import java.util.Calendar;
import org.iglooproject.commons.io.FileUtils;
import org.iglooproject.spring.property.SpringPropertyIds;
import org.iglooproject.spring.property.service.IPropertyService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SchedulingServiceImpl implements ISchedulingService {

private static final Logger LOGGER = LoggerFactory.getLogger(SchedulingServiceImpl.class);

@Autowired private IPropertyService propertyService;

@Override
public void temporaryFilesCleaning() {
// Par défaut, on ne vide aucun répertoire.
// Exemple :
// cleanDirectory(configurer.getTmpDirectory());
cleanDirectory(propertyService.get(SpringPropertyIds.TMP_PATH));
}

@SuppressWarnings("unused")
Expand Down

0 comments on commit c0d1c1b

Please sign in to comment.