getFilePath static method

String? getFilePath(
  1. FolderType type,
  2. String fileName, [
  3. StorageType? storageType
])

根据文件夹类型和文件名获取完整文件路径

Gets the full file path based on folder type and file name.

Implementation

static String? getFilePath(FolderType type, String fileName,
    [StorageType? storageType]) {
  final folderPath = getFolderPath(type, storageType);
  if (folderPath == null) {
    loge('getFilePath: folder path is null for $type');
    return null;
  }

  return '$folderPath/$fileName';
}