We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e72d8 commit 97f5d23Copy full SHA for 97f5d23
VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VideoPlsLuaViewManagerSDK/VPLua/Manager/VPLuaSDK.m
@@ -92,6 +92,9 @@ + (void)checkLuaFiles {
92
93
NSArray* array = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:bundleLuaPath error:nil];
94
NSError *error = nil;
95
+ for (NSString *file in array) {
96
+ [[NSFileManager defaultManager] removeItemAtPath:[[VPUPPathUtil luaOSPath] stringByAppendingPathComponent:file] error:nil];
97
+ }
98
for (NSString *file in array) {
99
[[NSFileManager defaultManager] copyItemAtPath:[bundleLuaPath stringByAppendingPathComponent:file] toPath:[[VPUPPathUtil luaOSPath] stringByAppendingPathComponent:file] error:&error];
100
if (error) {
0 commit comments