mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 65685
This commit is contained in:
@ -408,7 +408,8 @@ public:
|
||||
}
|
||||
virtual bool exists(const std::wstring& path)
|
||||
{
|
||||
return NSFile::CFileBinary::Exists(getFullFilePath(path));
|
||||
std::wstring full = getFullFilePath(path);
|
||||
return NSFile::CFileBinary::Exists(full) && !NSDirectory::Exists(full);
|
||||
}
|
||||
virtual void remove(const std::wstring& path)
|
||||
{
|
||||
|
||||
@ -74,7 +74,7 @@ namespace XPS
|
||||
// Нужно подменить первые 32 байта файла
|
||||
if (IFolder::iftFolder == pFolder->getType())
|
||||
{
|
||||
if (!NSFile::CFileBinary::Exists(wsFontPath) && NSDirectory::Exists(wsFontPath))
|
||||
if (NSDirectory::Exists(wsFontPath))
|
||||
{
|
||||
IFolder::CBuffer* buffer = NULL;;
|
||||
pFolder->readFileWithChunks(wsFontPath, buffer);
|
||||
|
||||
Reference in New Issue
Block a user