Skip to content

Commit 97f5d23

Browse files
committed
remove lua before copy file
1 parent d9e72d8 commit 97f5d23

File tree

1 file changed

+3
-0
lines changed
  • VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VPLua/Manager

1 file changed

+3
-0
lines changed

VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VPLua/Manager/VPLuaSDK.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ + (void)checkLuaFiles {
9292

9393
NSArray* array = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:bundleLuaPath error:nil];
9494
NSError *error = nil;
95+
for (NSString *file in array) {
96+
[[NSFileManager defaultManager] removeItemAtPath:[[VPUPPathUtil luaOSPath] stringByAppendingPathComponent:file] error:nil];
97+
}
9598
for (NSString *file in array) {
9699
[[NSFileManager defaultManager] copyItemAtPath:[bundleLuaPath stringByAppendingPathComponent:file] toPath:[[VPUPPathUtil luaOSPath] stringByAppendingPathComponent:file] error:&error];
97100
if (error) {

0 commit comments

Comments
 (0)