using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using System.IO;
|
|
public class test7zip : MonoBehaviour
|
{
|
|
// Use this for initialization
|
void Start()
|
{
|
|
}
|
|
// Update is called once per frame
|
void Update()
|
{
|
if (Input.GetKeyDown(KeyCode.F))
|
{
|
var files = new List<FileInfo>();
|
FileExtersion.GetAllDirectoryFileInfos(Application.streamingAssetsPath, files);
|
foreach (var item in files)
|
{
|
var fullName = item.FullName;
|
if (fullName.EndsWith(".7z"))
|
{
|
SevenZipUtility.DeCompress(fullName, Path.GetDirectoryName(fullName));
|
File.Delete(fullName);
|
}
|
}
|
}
|
}
|
}
|