dolphin/Source/Core/DiscIO/Filesystem.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
421 B
C++
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "DiscIO/Filesystem.h"
namespace DiscIO
{
2017-06-13 21:05:30 +00:00
FileInfo::~FileInfo() = default;
2018-06-02 16:14:42 +00:00
u64 FileInfo::GetTotalSize() const
{
if (!IsDirectory())
return GetSize();
u64 size = 0;
for (const auto& entry : *this)
size += entry.GetTotalSize();
return size;
}
2017-06-13 21:05:30 +00:00
FileSystem::~FileSystem() = default;
2018-06-02 16:14:42 +00:00
} // namespace DiscIO