All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.euler.file.ExistsInFileSystemCondition Maven / Gradle / Ivy

package com.github.euler.file;

import java.net.URI;
import java.nio.file.Path;

import com.github.euler.core.BarrierCondition;
import com.github.euler.core.JobTaskToProcess;

public class ExistsInFileSystemCondition implements BarrierCondition {

    @Override
    public boolean block(JobTaskToProcess msg) {
        URI uri = msg.itemURI;
        Path path = FileUtils.toPath(uri);
        return path.toFile().exists();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy