dolphin/Source/Core/DiscIO/Filesystem.cpp

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

27 lines
444 B
C++
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 17:08:10 -06:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "DiscIO/Filesystem.h"
namespace DiscIO
{
2017-06-13 15:05:30 -06:00
FileInfo::~FileInfo() = default;
2018-06-02 10:14:42 -06: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 15:05:30 -06:00
FileSystem::~FileSystem() = default;
2018-06-02 10:14:42 -06:00
} // namespace DiscIO