setStoragePaths static method

void setStoragePaths({
  1. String? cachePath,
  2. String? filesPath,
})

Set storage paths

设置存储路径

cachePath 缓存路径(可选) filesPath 文件路径(可选)

Implementation

static void setStoragePaths({
  String? cachePath,
  String? filesPath,
}) {
  StorageManager.setStoragePaths(
    cachePath: cachePath,
    filesPath: filesPath,
  );

  // 初始化所有文件夹
  FileManager.initializeAllFolders();

  // 自动配置媒体加载器
  _setupMediaLoaderConfig();
}