1
|
package eu.dnetlib.enabling.is.sn;
|
2
|
|
3
|
import java.io.File;
|
4
|
|
5
|
import org.apache.commons.logging.Log;
|
6
|
import org.apache.commons.logging.LogFactory;
|
7
|
|
8
|
public class DnetPathVerifier {
|
9
|
|
10
|
/**
|
11
|
* logger.
|
12
|
*/
|
13
|
private static final Log log = LogFactory.getLog(DnetPathVerifier.class); // NOPMD by marko on 11/24/08 5:02 PM
|
14
|
|
15
|
public DnetPathVerifier(final String dnetPath) {
|
16
|
File f = new File(dnetPath);
|
17
|
if (f.exists() == false) {
|
18
|
log.info("path '" + dnetPath + "' not found, creating...");
|
19
|
f.mkdirs();
|
20
|
}
|
21
|
}
|
22
|
|
23
|
}
|