修复ota制作脚本删除文件未生成问题 626/2 626/head 627/target/1
authorSnickerSun <snickersun@163.com>
Thu, 1 Aug 2024 03:42:34 +0000 (11:42 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 1 Aug 2024 03:42:34 +0000 (11:42 +0800)
tools/scripts/compare_folder.py

index bbb090e..68a858f 100644 (file)
@@ -121,8 +121,8 @@ def creat_fs_patch(aPath,bPath,target_path):
             # print(cmd)
 
     if len(onlyInB) >0:
-        create_dirs(target_fs_path+"/diff")
-        delfiles_path=target_fs_path+"/diff/deletedfiles.txt"
+        create_dirs(target_path+"/diff")
+        delfiles_path=target_path+"/diff/deletedfiles.txt"
         f = open(delfiles_path,'w')
         # f.writelines(onlyInB)
         for of in sorted(onlyInB):