Home
last modified time | relevance | path

Searched refs:filesystem (Results 1 - 25 of 133) sorted by relevance

123456

/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dfile_manager.cpp131 IFilesystem* filesystem = GetFilesystem(protocol); in OpenFile() local
132 if (filesystem) { in OpenFile()
133 return filesystem->OpenFile(path); in OpenFile()
149 IFilesystem* filesystem = GetFilesystem(protocol); in CreateFile() local
150 if (filesystem) { in CreateFile()
151 return filesystem->CreateFile(path); in CreateFile()
167 IFilesystem* filesystem = GetFilesystem(protocol); in DeleteFile() local
168 if (filesystem) { in DeleteFile()
169 return filesystem->DeleteFile(path); in DeleteFile()
187 IFilesystem* filesystem in Rename() local
206 IFilesystem* filesystem = GetFilesystem(protocol); GetEntry() local
223 IFilesystem* filesystem = GetFilesystem(protocol); OpenDirectory() local
241 IFilesystem* filesystem = GetFilesystem(protocol); CreateDirectory() local
259 IFilesystem* filesystem = GetFilesystem(protocol); DeleteDirectory() local
268 RegisterFilesystem(const string_view protocol, IFilesystem::Ptr filesystem) RegisterFilesystem() argument
302 const IFilesystem* filesystem = GetFilesystem(protocol); GetAbsolutePaths() local
[all...]
H A Dstd_filesystem.cpp19 #if __has_include(<filesystem>)
20 #include <filesystem>
55 std::filesystem::path U8Path(string_view str) in U8Path()
57 return std::filesystem::u8path(str.begin().ptr(), str.end().ptr()); in U8Path()
115 return std::filesystem::remove(U8Path(path), ec) && !ec; in DeleteFile()
149 return std::filesystem::remove(U8Path(path), ec) && !ec; in DeleteDirectory()
165 std::filesystem::rename(U8Path(pathFrom), U8Path(pathTo), ec); in Rename()
200 auto canonicalPath = std::filesystem::canonical(U8Path(uri), ec); in GetEntry()
204 auto status = std::filesystem::status(canonicalPath, ec); in GetEntry()
208 auto time = std::filesystem in GetEntry()
[all...]
H A Dstd_directory.cpp21 #if __has_include(<filesystem>)
22 #include <filesystem>
62 uint64_t GetTimeStamp(const std::filesystem::directory_entry& entry) in GetTimeStamp()
67 IDirectory::Entry::Type GetEntryType(const std::filesystem::directory_entry& entry) in GetEntryType()
79 std::filesystem::path U8Path(string_view str) in U8Path()
81 return std::filesystem::u8path(str.begin().ptr(), str.end().ptr()); in U8Path()
102 if (std::filesystem::create_directory(U8Path(path), ec)) { in Create()
112 if (std::filesystem::is_directory(U8Path(path), ec)) { in Open()
126 for (auto& iter : std::filesystem::directory_iterator(U8Path(dir_->path_), ec)) { in GetEntries()
253 std::filesystem in ResolveAbsolutePath()
[all...]
H A Dstd_file.cpp21 #if __has_include(<filesystem>)
22 #include <filesystem>
82 std::filesystem::path U8Path(string_view str) in U8Path()
84 return std::filesystem::u8path(str.begin().ptr(), str.end().ptr()); in U8Path()
111 auto canonicalPath = std::filesystem::canonical(U8Path(path), ec); in Open()
116 if (std::filesystem::is_directory(canonicalPath)) { in Open()
145 auto canonicalPath = std::filesystem::weakly_canonical(U8Path(path), ec); in Create()
/foundation/window/window_manager/window_scene/session/host/src/
H A Dscene_persistent_storage.cpp18 #include <filesystem>
68 std::filesystem::path fileDir {saveDir_}; in InitDir()
69 if (!std::filesystem::exists(fileDir)) { in InitDir()
70 std::filesystem::create_directories(fileDir); in InitDir()
71 std::filesystem::permissions(fileDir, std::filesystem::perms::owner_read | std::filesystem::perms::owner_write | in InitDir()
72 std::filesystem::perms::group_read | std::filesystem::perms::group_write); in InitDir()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dmovedir.cpp19 #include <filesystem>
42 filesystem::path pathName(path); in JudgeExistAndEmpty()
43 if (filesystem::exists(pathName, errCode)) { in JudgeExistAndEmpty()
44 if (filesystem::is_empty(pathName, errCode)) { in JudgeExistAndEmpty()
54 filesystem::path pathName(path); in RmDirectory()
56 if (filesystem::exists(pathName, errCode)) { in RmDirectory()
58 (void)filesystem::remove_all(pathName, errCode); in RmDirectory()
72 filesystem::path pathTarget(pathStr); in RemovePath()
74 if (!filesystem::remove(pathTarget, errCode)) { in RemovePath()
85 if (!resGetFirstArg || !filesystem in ParseJsOperand()
[all...]
H A Dcopydir.cpp19 #include <filesystem>
53 if (filesystem::path(src).parent_path() == dest) { in AllowToCopy()
65 if (!resGetFirstArg || !filesystem::is_directory(filesystem::status(src.get(), errCode))) { in ParseAndCheckJsOperand()
70 if (!resGetSecondArg || !filesystem::is_directory(filesystem::status(dest.get(), errCode))) { in ParseAndCheckJsOperand()
91 filesystem::path destDir(path); in MakeDir()
93 if (!filesystem::create_directory(destDir, errCode)) { in MakeDir()
107 filesystem::path destFile(destPath); in RemoveFile()
109 if (!filesystem in RemoveFile()
[all...]
H A Dmove.cpp19 #include <filesystem>
41 if (!filesystem::is_directory(filesystem::status(path, errCode))) { in CheckDir()
99 filesystem::path dstPath(dest); in CopyAndDeleteFile()
101 if (filesystem::exists(dstPath, errCode)) { in CopyAndDeleteFile()
102 if (!filesystem::remove(dstPath, errCode)) { in CopyAndDeleteFile()
107 filesystem::path srcPath(src); in CopyAndDeleteFile()
108 if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode)) { in CopyAndDeleteFile()
H A Drmdirent.cpp20 #include <filesystem>
39 std::filesystem::path strToPath(fpath); in RmDirent()
41 std::uintmax_t num = std::filesystem::remove_all(strToPath, errCode); in RmDirent()
46 if (!num || std::filesystem::exists(strToPath, errCode)) { in RmDirent()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dmove_file.cpp24 #include <filesystem>
41 if (!filesystem::is_directory(filesystem::status(path))) { in CheckDir()
93 filesystem::path dstPath(dest); in CopyAndDeleteFile()
95 if (filesystem::exists(dstPath)) { in CopyAndDeleteFile()
96 if (!filesystem::remove(dstPath, errCode)) { in CopyAndDeleteFile()
101 filesystem::path srcPath(src); in CopyAndDeleteFile()
102 if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode)) { in CopyAndDeleteFile()
H A Dtranslistener.cpp17 #include <filesystem>
36 std::filesystem::path pathName(path); in RmDir()
38 if (std::filesystem::exists(pathName, errCode)) { in RmDir()
39 std::filesystem::remove_all(pathName, errCode); in RmDir()
52 while (std::filesystem::exists(DISTRIBUTED_PATH + random)) { in CreateDfsCopyPath()
121 if (!std::filesystem::create_directory(disSandboxPath, errCode)) { in PrepareCopySession()
132 if (std::filesystem::exists(sandboxDir, errCode)) { in PrepareCopySession()
156 if (std::filesystem::exists(sandboxPath) && std::filesystem::is_directory(sandboxPath)) { in CopyToSandBox()
158 std::filesystem in CopyToSandBox()
[all...]
H A Dcopy_dir.cpp34 std::filesystem::path destDir(path); in MakeDir()
36 if (!std::filesystem::create_directory(destDir, errCode)) { in MakeDir()
50 std::filesystem::path destFile(destPath); in RemoveFile()
52 if (!std::filesystem::remove(destFile, errCode)) { in RemoveFile()
73 std::filesystem::path dstPath(dest); in CopyFile()
74 if (std::filesystem::exists(dstPath)) { in CopyFile()
81 std::filesystem::path srcPath(src); in CopyFile()
83 if (!std::filesystem::copy_file(srcPath, dstPath, std::filesystem::copy_options::overwrite_existing, errCode)) { in CopyFile()
93 if (!std::filesystem in CopySubDir()
[all...]
H A Dfile_fs_impl.cpp416 filesystem::path pathName(path); in JudgeExistAndEmpty()
417 if (filesystem::exists(pathName)) { in JudgeExistAndEmpty()
418 if (filesystem::is_empty(pathName)) { in JudgeExistAndEmpty()
428 filesystem::path pathName(path); in RmDirectory()
429 if (filesystem::exists(pathName)) { in RmDirectory()
431 (void)filesystem::remove_all(pathName, errCode); in RmDirectory()
498 filesystem::path pathTarget(pathStr); in RemovePath()
500 if (!filesystem::remove(pathTarget, errCode)) { in RemovePath()
510 filesystem::path destPath(dest); in RenameDir()
511 if (filesystem in RenameDir()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/copy_listener/
H A Dtrans_listener.cpp19 #include <filesystem>
42 std::filesystem::path pathName(path); in RmDir()
44 if (std::filesystem::exists(pathName, errCode)) { in RmDir()
45 std::filesystem::remove_all(pathName, errCode); in RmDir()
58 while (std::filesystem::exists(DISTRIBUTED_PATH + random)) { in CreateDfsCopyPath()
159 if (!std::filesystem::create_directory(disSandboxPath, errCode)) { in PrepareCopySession()
170 if (std::filesystem::exists(sandboxDir, errCode)) { in PrepareCopySession()
194 if (std::filesystem::exists(sandboxPath) && std::filesystem::is_directory(sandboxPath)) { in CopyToSandBox()
196 std::filesystem in CopyToSandBox()
[all...]
/foundation/multimedia/av_session/services/session/adapter/
H A Dplugin_lib.cpp19 #include <filesystem>
80 auto realPath = std::filesystem::weakly_canonical(path); in GetRealPath()
86 return std::filesystem::exists(path); in CheckPathExist()
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dapp_clone_key_manager.cpp17 #include <filesystem>
36 if (!std::filesystem::exists(keyPath, errCode)) { in ActiveAppCloneUserKey()
/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Dmedia_monitor_service.cpp17 #include <filesystem>
427 std::filesystem::directory_iterator iter(BETA_DUMP_DIR, errorCode); in DumpFileClear()
465 std::filesystem::directory_iterator iter(fileFloader_, errorCode); in HistoryFilesHandle()
470 std::vector<std::filesystem::path> mediaFileVecs; in HistoryFilesHandle()
472 if (std::filesystem::is_regular_file(elem.status())) { in HistoryFilesHandle()
479 [](const std::filesystem::path &file1, const std::filesystem::path &file2) { in HistoryFilesHandle()
480 return std::filesystem::file_time_type(std::filesystem::last_write_time(file1)) < in HistoryFilesHandle()
481 std::filesystem in HistoryFilesHandle()
[all...]
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/
H A Ddrawing_sample_replayer.cpp16 #include <filesystem>
17 namespace fs = std::filesystem;
172 for (const std::filesystem::directory_entry& entry : std::filesystem::directory_iterator(path)) { in RenderLoop()
173 const std::filesystem::path& path = entry.path(); in RenderLoop()
/foundation/graphic/graphic_2d/rosen/test/frame_analyzer/unittest/
H A Dframe_saver_test.cpp16 #include <filesystem>
86 std::filesystem::remove_all(saveDirectory); in HWTEST_F()
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/
H A Dmain.cpp27 #include <filesystem>
537 std::vector<std::filesystem::path> shaderIncludePaths;
539 std::filesystem::path& shaderSourcePath;
540 std::filesystem::path& compiledShaderDestinationPath;
720 std::filesystem::path path;
727 found = std::filesystem::exists(path);
733 found = std::filesystem::exists(path);
1547 bool writeToFile(const array_view<T>& data, std::filesystem::path aDestinationFile)
1564 const std::filesystem::path relativeInputFilename =
1565 std::filesystem
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dset_flag_utils.cpp20 #include <filesystem>
45 if (!std::filesystem::exists(path)) { in ParseDirPath()
57 std::filesystem::directory_iterator pathList(path); in ParseDirPath()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/
H A Dkv_delegate.cpp18 #include <filesystem>
52 if (std::filesystem::exists(dbPath)) { in RemoveDbFile()
54 bool success = std::filesystem::remove(dbPath, ec); in RemoveDbFile()
64 std::filesystem::copy_options options = std::filesystem::copy_options::overwrite_existing; in CopyFile()
72 bool copyRet = std::filesystem::copy_file(src, dst, options, code); in CopyFile()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_asset_recv_listener.cpp18 #include <filesystem>
199 std::filesystem::rename(oldPath.c_str(), newPath.c_str()); in MoveAsset()
200 } catch (const std::filesystem::filesystem_error &e) { in MoveAsset()
217 std::filesystem::rename(oldPath.c_str(), newPath.c_str()); in MoveAsset()
218 } catch (const std::filesystem::filesystem_error &e) { in MoveAsset()
234 bool ret = std::filesystem::remove_all(removePath.c_str()); in RemoveAsset()
276 std::filesystem::rename(filePath.c_str(), zipfilePath.c_str()); in HandleZipFile()
277 } catch (const std::filesystem::filesystem_error &e) { in HandleZipFile()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Djpg_yuv_test.cpp217 std::filesystem::path dir(outpath); in YuvWriteToFile()
218 std::filesystem::create_directory(dir); in YuvWriteToFile()
1365 std::filesystem::path dir("scale"); in HWTEST_F()
1366 if (!std::filesystem::exists(dir)) { in HWTEST_F()
1367 ASSERT_EQ(std::filesystem::create_directory(dir), true); in HWTEST_F()
1402 std::filesystem::path dir("resize"); in HWTEST_F()
1403 if (!std::filesystem::exists(dir)) { in HWTEST_F()
1404 ASSERT_EQ(std::filesystem::create_directory(dir), true); in HWTEST_F()
1422 std::filesystem::path dir("flip"); in HWTEST_F()
1423 if (!std::filesystem in HWTEST_F()
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_loader.cpp18 #include <filesystem>
300 if (path_.empty() || !std::filesystem::exists(path_) || std::filesystem::is_directory(path_)) { in CheckPath()
351 if (std::filesystem::exists(dir) && std::filesystem::is_directory(dir)) { in MakeDir()
354 if (!std::filesystem::exists(dir)) { in MakeDir()
355 if (!std::filesystem::create_directories(std::filesystem::path(dir))) { in MakeDir()
356 NETNATIVE_LOGE("filesystem make dir err %{public}d", errno); in MakeDir()
361 if (!std::filesystem in MakeDir()
[all...]

Completed in 17 milliseconds

123456