文件夹忘记删掉了

This commit is contained in:
Bluemangoo 2026-06-22 17:36:18 +08:00
parent 51e16359de
commit 6829440c31
Signed by: Bluemangoo
GPG Key ID: F2F7E46880A1C4CF
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ use std::time::Duration;
use crate::core::config::{AppConfig, RegionConfig, RegionProviderConfig}; use crate::core::config::{AppConfig, RegionConfig, RegionProviderConfig};
use crate::core::errors::AssetExecutionError; use crate::core::errors::AssetExecutionError;
use crate::core::export_pipeline::extract_unity_asset_bundle; use crate::core::export_pipeline::{extract_unity_asset_bundle, get_hex_index};
use crate::core::retry::retry_async; use crate::core::retry::retry_async;
use aes::cipher::block_padding::Pkcs7; use aes::cipher::block_padding::Pkcs7;
use aes::cipher::{BlockDecryptMut, KeyIvInit}; use aes::cipher::{BlockDecryptMut, KeyIvInit};
@ -265,7 +265,7 @@ impl AssetExecutionContext {
.join("sekai-updater") .join("sekai-updater")
.join("obf") .join("obf")
.join(&self.region_name) .join(&self.region_name)
.join(task); .join(get_hex_index(task));
if let Some(parent) = temp_file.parent() { if let Some(parent) = temp_file.parent() {
std::fs::create_dir_all(parent).map_err(|source| { std::fs::create_dir_all(parent).map_err(|source| {
AssetExecutionError::CreateTempDir { AssetExecutionError::CreateTempDir {

View File

@ -76,6 +76,7 @@ pub async fn main() -> anyhow::Result<()> {
images.push(new_file); images.push(new_file);
} }
} }
fs::remove_dir_all(dir.0)?;
} }
*PROVIDE.write().map_err(|e| anyhow!("{}", e))? = Some(FetchResult { *PROVIDE.write().map_err(|e| anyhow!("{}", e))? = Some(FetchResult {