Home
last modified time | relevance | path

Searched refs:excludes (Results 1 - 14 of 14) sorted by relevance

/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_filesystem/
H A Db_dir_test.cpp146 vector<string> excludes = {filePath2}; in HWTEST_F() local
147 auto [errCode, mpNameToStat, smallFiles] = BDir::GetBigFiles(includes, excludes); in HWTEST_F()
172 vector<string> excludes = {{}}; in HWTEST_F() local
173 auto [errCode, mpNameToStat, smallFiles] = BDir::GetBigFiles(includes, excludes); in HWTEST_F()
196 vector<string> excludes; in HWTEST_F() local
197 auto [errCode, mpNameToStat, smallFiles] = BDir::GetBigFiles(includes, excludes); in HWTEST_F()
220 vector<string> excludes; in HWTEST_F() local
221 auto [errCode, mpNameToStat, smallFiles] = BDir::GetBigFiles(includes, excludes); in HWTEST_F()
244 vector<string> excludes; in HWTEST_F() local
246 auto [errCode, mpNameToStat, smallFiles] = BDir::GetBigFiles(includes, excludes); in HWTEST_F()
286 vector<string> excludes = {preparedDir + string("/test/test1/test2"), {}}; HWTEST_F() local
[all...]
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_tarball/
H A Db_tarball_cmdline_test.cpp130 vector<string_view> excludes {bFile}; in HWTEST_F()
134 tarballCmdline.Tar(root, includes, excludes); in HWTEST_F()
176 vector<string_view> excludes {bFile}; in HWTEST_F()
181 tarballCmdline.Tar(root, includes, excludes); in HWTEST_F()
224 vector<string_view> excludes {bFile}; in HWTEST_F()
228 tarballCmdline.Tar(root, includes, excludes); in HWTEST_F()
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/
H A Db_json_entity_extension_config_test.cpp67 * @tc.desc: 不包含includes和excludes
85 vector<string> excludes = cache.GetExcludes(); in HWTEST_F() local
86 EXPECT_EQ(excludes, DEFAULT_EXCLUDE_DIR); in HWTEST_F()
130 * @tc.desc: json文件中只包含excludes
144 SaveStringToFile(pathConfigFile, R"({"excludes":["", "", ""]})"); in HWTEST_F()
148 vector<string> excludes = cache.GetExcludes(); in HWTEST_F() local
150 EXPECT_EQ(excludes, excludesExpect); in HWTEST_F()
161 * @tc.desc: 同时包含includes和excludes
175 SaveStringToFile(pathConfigFile, R"({"includes":["", "", ""], "excludes":["", "", ""]})"); in HWTEST_F()
182 vector<string> excludes in HWTEST_F() local
216 vector<string> excludes = cache.GetExcludes(); HWTEST_F() local
248 vector<string> excludes = cache.GetExcludes(); HWTEST_F() local
281 vector<string> excludes = cache.GetExcludes(); HWTEST_F() local
451 vector<string> excludes = cache.GetExcludes(); HWTEST_F() local
[all...]
/foundation/filemanagement/app_file_service/utils/src/b_tarball/
H A Db_tarball_factory.cpp65 * @param excludes The part that does not need to be packed in the path to be packed
67 * @return std::tuple<vector<string>, vector<string>> 返回合法的includes, excludes
72 const vector<string_view> &excludes) in TarFilter()
94 for (auto &item : excludes) { in TarFilter()
170 string_view root, vector<string_view> includes, vector<string_view> excludes) { in Create()
171 auto [newIncludes, newExcludes] = TarFilter(tarballDir, root, includes, excludes); in Create()
69 TarFilter(string_view tarballDir, string_view root, const vector<string_view> &includes, const vector<string_view> &excludes) TarFilter() argument
H A Db_tarball_cmdline.cpp60 void BTarballCmdline::Tar(string_view root, vector<string_view> includes, vector<string_view> excludes) in Tar() argument
83 vector<string> excludesDirs = BDir::GetDirs(excludes); in Tar()
/foundation/filemanagement/app_file_service/utils/include/b_filesystem/
H A Db_dir.h44 * @brief 从给定的includes和excludes目录及文件中获取所有有用大文件和其链接文件的集合
47 * @param excludes 需要排除的文件及目录集合
51 const std::vector<std::string> &includes, const std::vector<std::string> &excludes);
62 * @brief 从给定的includes和excludes目录中获取所有的大文件和小文件
65 * @param excludes 需要排除的文件及目录集合
69 const std::vector<std::string> &includes, const std::vector<std::string> &excludes);
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/
H A Db_dir.cpp206 const vector<string> &excludes) in GetBigFiles()
243 if (!isMatch(excludes, item.first)) { in GetBigFiles()
250 if (!isMatch(excludes, item.first)) { in GetBigFiles()
385 const vector<string> &excludes) in GetBackupList()
417 if (isMatch(excludes, *item)) { in GetBackupList()
424 if (isMatch(excludes, *item)) { in GetBackupList()
205 GetBigFiles(const vector<string> &includes, const vector<string> &excludes) GetBigFiles() argument
384 GetBackupList(const vector<string> &includes, const vector<string> &excludes) GetBackupList() argument
/foundation/filemanagement/app_file_service/utils/include/b_tarball/
H A Db_tarball_cmdline.h28 void Tar(std::string_view root, std::vector<std::string_view> includes, std::vector<std::string_view> excludes);
/foundation/filemanagement/app_file_service/tests/mock/b_tarball/
H A Db_tarball_cmdline_mock.cpp29 void BTarballCmdline::Tar(string_view root, vector<string_view> includes, vector<string_view> excludes) in Tar() argument
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_external/
H A Dbms_adapter.cpp184 backupPara.excludes = cache.GetExcludes(); in GetBackupExtConfig()
191 const vector<string> &includes, const vector<string> &excludes) in CreateIPCInteractionFiles()
227 for (const auto &exclude : excludes) { in CreateIPCInteractionFiles()
305 backupPara.excludes)) { in GetBundleInfosForIncremental()
190 CreateIPCInteractionFiles(int32_t userId, const string &bundleName, int64_t lastIncrementalTime, const vector<string> &includes, const vector<string> &excludes) CreateIPCInteractionFiles() argument
/foundation/filemanagement/storage_service/services/storage_daemon/quota/
H A Dquota_manager.cpp318 std::vector<std::string> excludes; in ReadIncludesExcludesPath() local
335 excludes.emplace_back(line); in ReadIncludesExcludesPath()
339 return {includes, excludes}; in ReadIncludesExcludesPath()
737 const std::vector<std::string> &includes, const std::vector<std::string> &excludes, in ScanExtensionPath()
741 for (auto exclude : excludes) { in ScanExtensionPath()
804 // obtain includes, excludes in backup extension config in GetBundleStatsForIncreaseEach()
805 auto [includes, excludes] = ReadIncludesExcludesPath(bundleName, lastBackupTime, userId); in GetBundleStatsForIncreaseEach()
827 for (const auto &exclude : excludes) { in GetBundleStatsForIncreaseEach()
736 ScanExtensionPath(BundleStatsParas &paras, const std::vector<std::string> &includes, const std::vector<std::string> &excludes, std::map<std::string, std::string> &pathMap, std::ofstream &statFile) ScanExtensionPath() argument
/foundation/filemanagement/app_file_service/utils/include/b_json/
H A Db_json_entity_caps.h46 std::vector<std::string> excludes; member
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Dsub_ext_extension.cpp887 vector<string> excludes = usrConfig.GetExcludes();
888 auto task = [obj {wptr<BackupExtExtension>(this)}, includes, excludes]() {
892 auto [bigFile, smallFile] = BDir::GetBackupList(includes, excludes);
H A Dext_extension.cpp603 static pair<TarMap, map<string, size_t>> GetFileInfos(const vector<string> &includes, const vector<string> &excludes) in GetFileInfos() argument
606 auto [errCode, files, smallFiles] = BDir::GetBigFiles(includes, excludes); in GetFileInfos()
747 vector<string> excludes = usrConfig.GetExcludes(); in DoBackup() local
756 auto [bigFileInfo, smallFiles] = GetFileInfos(includes, excludes); in DoBackup()
760 excludes.push_back(filePath); in DoBackup()

Completed in 12 milliseconds