- add: unpack think

This commit is contained in:
2025-04-20 15:43:57 +03:00
parent 51741595c6
commit 11eb3eb865
6 changed files with 53 additions and 40 deletions

View File

@@ -74,6 +74,13 @@ public class FileService
{
return new FileApi(Path.Join(RootPath, path));
}
public IReadWriteFileApi EnsureTempDir(out string path)
{
path = Path.Combine(Path.GetTempPath(), "tempThink"+Path.GetRandomFileName());
Directory.CreateDirectory(path);
return new FileApi(path);
}
public ZipFileApi? OpenZip(string path, IFileApi fileApi)
{