# FolderScanToJSON **Repository Path**: eran/FolderScanToJSON ## Basic Information - **Project Name**: FolderScanToJSON - **Description**: 扫描某个目录并生成JSON格式的扫描报告 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2014-07-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #FolderScanToJSON ## 说明 ## ### Folder ### - 整个文件夹都作为一个Queue解析, ** 需要指定QueueName ** ``` "path": "E:\\Texture\\output\\meta", "type": "Folder", "releasePath": "meta", "queueName": "Meta" ``` - 输出结果: ``` { "queueName": "Meta", "fileList": [ { "filePath": "File:///E:/Texture/output/meta/ClubBackground.ce", "fileName": "ClubBackground", "fileType": "ce" }, { "filePath": "File:///E:/Texture/output/meta/GUI.ce", "fileName": "GUI", "fileType": "ce" }, { "filePath": "File:///E:/Texture/output/meta/MainScene.ce", "fileName": "MainScene", "fileType": "ce" }, { "filePath": "File:///E:/Texture/output/meta/Register.ce", "fileName": "Register", "fileType": "ce" } ] } ``` --- ### GUI ### - 整个文件夹按照GUI的解析方式解析,一个FLA导出类对应多个纹理图,每个纹理图前缀都一样,_1,_2,_3区分" - 比如: > - GUI_AvatarShop_CN_ClothingShopScene_1.atlas > - GUI_AvatarShop_CN_ClothingShopScene_1.png > - GUI_AvatarShop_CN_ClothingShopScene_2.atlas > - GUI_AvatarShop_CN_ClothingShopScene_2.png - **不用指定QueueName** ``` { "path": "E:\\Texture\\output\\gui", "type": "GUI", "releasePath": "gui", "queueName": "NoNeed" } ``` - 输出结果: ``` { "queueName": "GUI_AvatarShop_CN_ClothingShopScene", "fileList": [ { "filePath": "File:///E:/Texture/output/gui/GUI_AvatarShop_CN_ClothingShopScene_1.atlas", "fileName": "GUI_AvatarShop_CN_ClothingShopScene_1", "fileType": "atlas" }, { "filePath": "File:///E:/Texture/output/gui/GUI_AvatarShop_CN_ClothingShopScene_2.atlas", "fileName": "GUI_AvatarShop_CN_ClothingShopScene_2", "fileType": "atlas" } ] } ``` --- ## Single ## - 整个文件夹的文件每一个都对应一个Queue,QueueName就是其文件名,去除后缀 - **不用指定QueueName** ``` { "path": "E:\\Texture\\output\\asset", "type": "Single", "releasePath": "asset", "queueName": "NoNeed" } ``` - 输出结果: ``` { "queueName": "ears9_Ears_2", "fileList": [ { "filePath": "File:///E:/Texture/output/asset/ears9_Ears_2.png", "fileName": "ears9_Ears_2", "fileType": "png" } ] }, { "queueName": "ears9_Ears_3", "fileList": [ { "filePath": "File:///E:/Texture/output/asset/ears9_Ears_3.png", "fileName": "ears9_Ears_3", "fileType": "png" } ] } ``` ## 特别说明 ## - 如果一个文件名同时存在 xxx.atlas 和 xxx.png 时候 会仅仅Load atals文件 - atals文件样式: ``` ``` - 运行Jar文件时候需要传入参数 - true: > - 按发布版方式生成JSON文件 > - 目录结构为: "filePath": "app:/meta/ClubBackground.ce" > - 及为"app:/" + Config文件中"releasePath"指定的key + 文件名.后缀 - false: > - 按开发版方式生成JSON文件 > - 目录结构为: "filePath": "File:///E:/Texture/output/asset/ears9_Ears_2.png" > - 及为"File:///" + 文件的绝对路径(所有路径都以/标示)