mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-07-25 06:15:29 -04:00
fix:modify security method and fix file path parsing
Signed-off-by: yue <yueyan4@huawei.com>
This commit is contained in:
@@ -15,7 +15,7 @@ namespace HDI {
|
||||
bool CppInterfaceCodeEmitter::ResolveDirectory(const String &targetDirectory)
|
||||
{
|
||||
if (ast_->GetASTFileType() == ASTFileType::AST_IFACE || ast_->GetASTFileType() == ASTFileType::AST_ICALLBACK) {
|
||||
directory_ = GetFilePath(targetDirectory);
|
||||
directory_ = GetFileParentPath(targetDirectory);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user