public static boolean createFile(String path) throws ExecutionException, InterruptedException {
        if (TextUtils.isEmpty(path)) {
            return false;
        }
        final File file = new File(path);
        return file.exists() || file.mkdirs();

    }
A file helper to make thing easier.

@author ChenSL
boxing/src/main/java/com/bilibili/boxing/utils/BoxingFileHelper.java