MCPcopy Create free account
hub / github.com/YtFlow/Maple / CopyDefaultConfig

Method CopyDefaultConfig

Maple.App/MainPage.cpp:113–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 IAsyncOperation<StorageFile> MainPage::CopyDefaultConfig(const IStorageFolder& configFolder, std::wstring_view path, const hstring& desiredName)
114 {
115 const auto& defaultConfigSrc = co_await StorageFile::GetFileFromApplicationUriAsync(Uri{ path });
116 co_return co_await defaultConfigSrc.CopyAsync(configFolder, desiredName, NameCollisionOption::GenerateUniqueName);
117 }
118
119 IAsyncAction MainPage::LoadConfigs()
120 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected