1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef HC_GEN_FILE_H 10 #define HC_GEN_FILE_H 11 12 #include <string> 13 14 namespace OHOS { 15 namespace Hardware { 16 namespace Util { 17 class File { 18 public: 19 static std::string AbsPath(const std::string &path); 20 static std::string StripSuffix(std::string path); 21 static std::string GetDir(std::string path); 22 static std::string FileNameBase(const std::string &path); 23 }; 24 } // namespace Util 25 } // namespace Hardware 26 } // namespace OHOS 27 #endif // HC_GEN_FILE_H 28