mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-18 17:24:42 -04:00
+3
-2
@@ -136,8 +136,9 @@ uint32_t PackageParser::AddInput(const string& argValue)
|
||||
return RESTOOL_ERROR;
|
||||
}
|
||||
|
||||
string indexPath = ResourceUtil::GetMainPath(inputPath).Append(RESOURCE_INDEX_FILE).GetPath();
|
||||
if (ResourceUtil::FileExist(indexPath)) {
|
||||
string indexPath = FileEntry::FilePath(inputPath).Append(RESOURCE_INDEX_FILE).GetPath();
|
||||
string indexPathJson = ResourceUtil::GetMainPath(inputPath).Append(RESOURCE_INDEX_FILE).GetPath();
|
||||
if (ResourceUtil::FileExist(indexPath) || ResourceUtil::FileExist(indexPathJson)) {
|
||||
inputs_.emplace(inputs_.begin(), inputPath);
|
||||
} else {
|
||||
inputs_.push_back(inputPath);
|
||||
|
||||
Reference in New Issue
Block a user