LingxinMeng 7 maanden geleden
bovenliggende
commit
9a26b43de8

+ 1 - 1
src/python2/pjibot_delivery/2callback-pjibot_delivery.py

@@ -54,7 +54,7 @@ if __name__ == '__main__':
                         file7 = False
                         file8 = False
                         file9 = False
-                        for obj2 in oss2.ObjectIterator(bucket, prefix=prefix):
+                        for obj2 in oss2.ObjectIterator(bucket, prefix=prefix + '/'):
                             if '/callback.json' in str(obj2.key):
                                 file1 = True
                             if '/ego_pji.csv' in str(obj2.key):

+ 1 - 1
src/python2/pjibot_delivery/callback-pjibot_delivery.py

@@ -54,7 +54,7 @@ if __name__ == '__main__':
                         file7 = False
                         file8 = False
                         file9 = False
-                        for obj2 in oss2.ObjectIterator(bucket, prefix=prefix):
+                        for obj2 in oss2.ObjectIterator(bucket, prefix=prefix+ '/'):
                             if '/callback.json' in str(obj2.key):
                                 file1 = True
                             if '/ego_pji.csv' in str(obj2.key):

+ 1 - 1
src/python2/pjibot_patrol/callback-pjibot_patrol.py

@@ -61,7 +61,7 @@ if __name__ == '__main__':
                         file7 = False
                         file8 = False
                         file9 = False
-                        for obj2 in oss2.ObjectIterator(bucket, prefix=prefix):
+                        for obj2 in oss2.ObjectIterator(bucket, prefix=prefix+ '/'):
                             if '/callback.json' in str(obj2.key):
                                 file1 = True
                             if '/ego_pji.csv' in str(obj2.key):

+ 1 - 1
src/python2/pjisuv/callback-pjisuv.py

@@ -61,7 +61,7 @@ if __name__ == '__main__':
                 plan_bag = False
                 control_bag = False
                 callback_json = False
-                for obj2 in oss2.ObjectIterator(bucket, prefix=prefix):
+                for obj2 in oss2.ObjectIterator(bucket, prefix=prefix+ '/'):
                     if 'callback.json' in str(obj2.key):
                         callback_json = True
                     if 'camera.mp4' in str(obj2.key):