}
} catch (FileNotFoundException fnfex) {
// The exception is thrown if the requested file/directory does not exist.
// if the degree of parallelism is > 1, we create a directory for this path
if (getNumberOfSubtasks() > 1) {
fs.mkdirs(path);
return -1;
} else {
// a none existing file and a degree of parallelism that is one
return 1;
}