diff --git a/src/usvfs_dll/usvfs.cpp b/src/usvfs_dll/usvfs.cpp index 652d2e4..08caa74 100644 --- a/src/usvfs_dll/usvfs.cpp +++ b/src/usvfs_dll/usvfs.cpp @@ -762,6 +762,9 @@ BOOL WINAPI VirtualLinkDirectoryStatic(LPCWSTR source, LPCWSTR destination, unsi for (winapi::ex::wide::FileResult file : winapi::ex::wide::quickFindFiles(sourceP.c_str(), L"*")) { if (file.attributes & FILE_ATTRIBUTE_DIRECTORY) { + if (file.fileName == L".git") { + continue; + } if ((file.fileName != L".") && (file.fileName != L"..")) { VirtualLinkDirectoryStatic((sourceW + file.fileName).c_str(), (destinationW + file.fileName).c_str(), @@ -771,6 +774,10 @@ BOOL WINAPI VirtualLinkDirectoryStatic(LPCWSTR source, LPCWSTR destination, unsi std::string nameU8 = ush::string_cast( file.fileName.c_str(), ush::CodePage::UTF8); + if (bfs::path(nameU8).extension() == ".mohidden") { + continue; + } + // TODO could save memory here by storing only the file name for the // source and constructing the full name using the parent directory context->redirectionTable().addFile(