Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
vfs_tree.cpp File Reference
#include "precompiled.h"
#include "lib/file/vfs/vfs_tree.h"
#include <cstdio>
#include <ctime>
#include "lib/file/common/file_stats.h"
Include dependency graph for vfs_tree.cpp:

Functions

static bool ShouldDelete (const VfsFile &file, const VfsFile &deletedFile)
 
static bool ShouldReplaceWith (const VfsFile &previousFile, const VfsFile &newFile)
 
std::wstring FileDescription (const VfsFile &file)
 
std::wstring FileDescriptions (const VfsDirectory &directory, size_t indentLevel)
 
void DirectoryDescriptionR (std::wstring &descriptions, const VfsDirectory &directory, size_t indentLevel)
 append each directory's files' description to the given string. More...
 

Function Documentation

◆ DirectoryDescriptionR()

void DirectoryDescriptionR ( std::wstring &  descriptions,
const VfsDirectory directory,
size_t  indentLevel 
)

append each directory's files' description to the given string.

◆ FileDescription()

std::wstring FileDescription ( const VfsFile file)
Returns
a string containing file attributes (location, size, timestamp) and name.

◆ FileDescriptions()

std::wstring FileDescriptions ( const VfsDirectory directory,
size_t  indentLevel 
)
Returns
a string holding each files' description (one per line).

◆ ShouldDelete()

static bool ShouldDelete ( const VfsFile file,
const VfsFile deletedFile 
)
static

◆ ShouldReplaceWith()

static bool ShouldReplaceWith ( const VfsFile previousFile,
const VfsFile newFile 
)
static