mirror of
https://codeberg.org/WinDurango/WinDurango.git
synced 2026-04-18 10:33:33 -04:00
feat!: reorganised stuff
This commit is contained in:
@@ -1,35 +1,39 @@
|
||||
#include "WinDurango.Implementation.WinRT/Interfaces/Storage/Directory.h"
|
||||
|
||||
namespace wd::impl::winrt::interfaces::storage {
|
||||
bool WinRTDirectory::open() {
|
||||
return false;
|
||||
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::open() {
|
||||
StorageFolder sf = ApplicationData::Current().LocalFolder();
|
||||
if (sf) {
|
||||
dir = &sf;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
wd::common::interfaces::storage::File* WinRTDirectory::CreateFile(std::filesystem::path path) {
|
||||
return nullptr;
|
||||
}
|
||||
wd::common::interfaces::storage::File* wd::impl::winrt::interfaces::storage::WinRTDirectory::CreateFile(std::filesystem::path path) {
|
||||
auto file = localFolder.CreateFileAsync(winrt::hstring(path.wstring()), winrt::Windows::Storage::CreationCollisionOption::FailIfExists).get();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
wd::common::interfaces::storage::Directory* WinRTDirectory::CreateDirectory(std::filesystem::path path) {
|
||||
return nullptr;
|
||||
}
|
||||
wd::common::interfaces::storage::Directory* wd::impl::winrt::interfaces::storage::WinRTDirectory::CreateDirectory(std::filesystem::path path) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::filesystem::path WinRTDirectory::dirpath() {
|
||||
return path;
|
||||
}
|
||||
std::filesystem::path wd::impl::winrt::interfaces::storage::WinRTDirectory::dirpath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
bool WinRTDirectory::rename(std::string) {
|
||||
return false;
|
||||
}
|
||||
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::rename(std::string) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool WinRTDirectory::remove() {
|
||||
return false;
|
||||
}
|
||||
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::remove() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool WinRTDirectory::move(std::filesystem::path path) {
|
||||
return false;
|
||||
}
|
||||
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::move(std::filesystem::path path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool WinRTDirectory::copy(std::filesystem::path path) {
|
||||
return false;
|
||||
}
|
||||
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::copy(std::filesystem::path path) {
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user