//
//  RCTRnUpdateFileManager.h
//  LocalApp
//
//  Created by edy on 2026/1/5.
//


#import <Foundation/Foundation.h>

@interface RCTRnUpdateFileManager : NSObject


// 创建文件夹
- (BOOL)createDir:(NSString *)dir;

// 解压文件
- (void)unzipFile:(NSString *)zipPath toDestination:(NSString *)destination
  progressHandler:(void (^)(NSString *entry, long entryNumber, long total, double progress))progressHandler
completionHandler:(void (^)(NSString *path, BOOL succeeded, NSError *error))completionHandler;

// 检测压缩包是否存在
- (BOOL)checkZipFileExists:(NSString *)zipPath;

// 检测文件是否存在
+ (BOOL)checkFileExists:(NSString *)filePath;

@end

