presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/FileStorageService.java/FileStorageService/createParents
class FileStorageService:    @Override
    public void createParents(File file)
    {
        File dir = file.getParentFile();
        if (!dir.mkdirs() && !dir.isDirectory()) {
            throw new PrestoException(RAPTOR_ERROR, "Failed creating directories: " + dir);
        }
    }