Commit 19217ddf authored by oscar's avatar oscar

修改遍历目录结构

parent f8796ad8
......@@ -743,7 +743,11 @@ if __name__ == '__main__':
save_json_list = []
dir_pcd_list = {}
dirs = os.listdir(origin_root_path)
dirsAll = os.listdir(origin_root_path)
dirs =[]
for file_ in dirsAll:
if os.path.isdir(origin_root_path + "/" + file_) == True:
dirs.append(file_)
for dir in dirs:
if os.path.isdir(origin_root_path + "/" + dir) == False:
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment