com.emc.mongoose.base.env.FsUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-base Show documentation
Show all versions of mongoose-base Show documentation
Mongoose is a high-load storage performance testing tool
package com.emc.mongoose.base.env;
import com.emc.mongoose.base.logging.Loggers;
import java.nio.file.Path;
public interface FsUtil {
static void createParentDirsIfNotExist(final Path path) {
if (path != null) {
final var parentDirPath = path.getParent();
if (parentDirPath != null) {
final var parentDir = parentDirPath.toFile();
if (!parentDir.exists() && !parentDir.mkdirs()) {
Loggers.ERR.warn(
"Failed to create parent directories for the item info output file \"{}\"", path);
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy