buildFilePathInCache static method

Future<String> buildFilePathInCache(
  1. String fileName
)

构建Caches文件路径 使用示例 void example() { PPath.buildFilePathInCache('file.txt'); } 返回:/var/mobile/***/Library/Caches/file.txt

Implementation

static Future<String> buildFilePathInCache(String fileName) async {
  var dir = await PPath.appCacheDir();
  return join(dir.path, fileName);
}