mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13905 from perminovVS/win32-remove-dir-correct-point
FileUtilsWin32 removeDirectory correct remove file begins with point
This commit is contained in:
commit
7ac0b861c9
|
@ -592,8 +592,9 @@ bool FileUtilsWin32::removeDirectory(const std::string& dirPath)
|
||||||
BOOL find = true;
|
BOOL find = true;
|
||||||
while (find)
|
while (find)
|
||||||
{
|
{
|
||||||
//. ..
|
// Need check string . and .. for delete folders and files begin name.
|
||||||
if (wfd.cFileName[0] != '.')
|
std::wstring fileName = wfd.cFileName;
|
||||||
|
if (fileName != L"." && fileName != L"..")
|
||||||
{
|
{
|
||||||
std::wstring temp = wpath + wfd.cFileName;
|
std::wstring temp = wpath + wfd.cFileName;
|
||||||
if (wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
if (wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||||
|
|
Loading…
Reference in New Issue