Home
last modified time | relevance | path

Searched refs:stat_req (Results 1 - 7 of 7) sorted by relevance

/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dstat.cpp88 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Sync() local
90 if (!stat_req) { in Sync()
95 auto err = CheckFsStat(fileInfo, stat_req.get()); in Sync()
107 auto stat = CommonFunc::InstantiateStat(env, stat_req->statbuf, arg).val_; in Sync()
109 auto stat = CommonFunc::InstantiateStat(env, stat_req->statbuf).val_; in Sync()
133 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Async()
135 if (!stat_req) { in Async()
139 auto err = CheckFsStat(*fileInfo, stat_req.get()); in Async()
143 arg->stat_ = stat_req->statbuf; in Async()
H A Dutimes.cpp52 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in Sync() local
54 if (!stat_req) { in Sync()
60 int ret = uv_fs_stat(nullptr, stat_req.get(), path.get(), nullptr); in Sync()
75 double atime = static_cast<double>(stat_req->statbuf.st_atim.tv_sec) + in Sync()
76 static_cast<double>(stat_req->statbuf.st_atim.tv_nsec) / NS; in Sync()
H A Dread_lines.cpp48 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in GetFileSize() local
50 if (!stat_req) { in GetFileSize()
55 int ret = uv_fs_stat(nullptr, stat_req.get(), path.c_str(), nullptr); in GetFileSize()
61 offset = static_cast<int64_t>(stat_req->statbuf.st_size); in GetFileSize()
H A Dmove.cpp87 std::unique_ptr<uv_fs_t, decltype(CommonFunc::fs_req_cleanup)*> stat_req = { in CopyAndDeleteFile() local
89 if (!stat_req) { in CopyAndDeleteFile()
93 int ret = uv_fs_stat(nullptr, stat_req.get(), src.c_str(), nullptr); in CopyAndDeleteFile()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dmove_file.cpp81 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { in CopyAndDeleteFile() local
83 if (!stat_req) { in CopyAndDeleteFile()
87 int ret = uv_fs_stat(nullptr, stat_req.get(), src.c_str(), nullptr); in CopyAndDeleteFile()
128 return ChangeTime(dest, stat_req.get()); in CopyAndDeleteFile()
H A Dfile_fs_impl.cpp73 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { in GetUvStat() local
75 if (!stat_req) { in GetUvStat()
79 auto state = CheckFsStat(fileInfo, stat_req.get()); in GetUvStat()
83 uv_stat_t* tempBuf = new (std::nothrow) uv_stat_t(stat_req->statbuf); in GetUvStat()
111 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { in GetFsAccess() local
113 if (!stat_req) { in GetFsAccess()
118 int ret = uv_fs_access(nullptr, stat_req.get(), fileInfo.path.get(), 0, nullptr); in GetFsAccess()
442 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { in RestoreTime() local
444 if (!stat_req) { in RestoreTime()
448 int ret = uv_fs_stat(nullptr, stat_req in RestoreTime()
1052 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { GetFileSize() local
1194 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> stat_req = { Utimes() local
[all...]
/foundation/filemanagement/user_file_service/utils/
H A Dfile_util.h96 unique_ptr<uv_fs_t, decltype(fs_req_cleanup)*> stat_req = { in GetStat() local
98 if (!stat_req) { in GetStat()
102 auto err = CheckFsStatByPath(path, stat_req.get()); in GetStat()
104 statEntity = StatEntity { stat_req->statbuf }; in GetStat()

Completed in 4 milliseconds