presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/backup/FileBackupStore.java/FileBackupStore/createDirectories
class FileBackupStore:    private static void createDirectories(File dir)
    {
        if (!dir.mkdirs() && !dir.isDirectory()) {
            throw new PrestoException(RAPTOR_BACKUP_ERROR, "Failed creating directories: " + dir);
        }
    }