66
77napi_value create_file_placeholder_impl (napi_env env, napi_callback_info info)
88{
9- auto [fileName , placeholderId, fileSize, creationTimeMs, lastWriteTimeMs, lastAccessTimeMs, parentPath] =
9+ auto [name , placeholderId, fileSize, creationTimeMs, lastWriteTimeMs, lastAccessTimeMs, parentPath] =
1010 napi_extract_args<std::wstring, std::wstring, int64_t , int64_t , int64_t , int64_t , std::wstring>(env, info);
1111
1212 LARGE_INTEGER creationTime = Utilities::JsTimestampToLargeInteger (creationTimeMs);
1313 LARGE_INTEGER lastWriteTime = Utilities::JsTimestampToLargeInteger (lastWriteTimeMs);
1414 LARGE_INTEGER lastAccessTime = Utilities::JsTimestampToLargeInteger (lastAccessTimeMs);
1515
16- std::wstring path = parentPath + L' \\ ' + fileName ;
16+ std::wstring path = parentPath + L' \\ ' + name ;
1717
1818 if (std::filesystem::exists (path)) {
1919 Placeholders::ConvertToPlaceholder (path, placeholderId);
@@ -24,7 +24,7 @@ napi_value create_file_placeholder_impl(napi_env env, napi_callback_info info)
2424 CF_PLACEHOLDER_CREATE_INFO cloudEntry = {};
2525 cloudEntry.FileIdentity = placeholderId.c_str ();
2626 cloudEntry.FileIdentityLength = static_cast <DWORD>((placeholderId.size () + 1 ) * sizeof (WCHAR));
27- cloudEntry.RelativeFileName = fileName .c_str ();
27+ cloudEntry.RelativeFileName = name .c_str ();
2828 cloudEntry.Flags = CF_PLACEHOLDER_CREATE_FLAG_MARK_IN_SYNC;
2929 cloudEntry.FsMetadata .FileSize .QuadPart = fileSize;
3030 cloudEntry.FsMetadata .BasicInfo .FileAttributes = FILE_ATTRIBUTE_NORMAL;
0 commit comments