Renaming xe::fs to xe::filesystem and xe::kernel::fs to xe::vfs.

Progress on #294.
This commit is contained in:
Ben Vanik
2015-06-27 13:31:21 -07:00
parent bc75b0ab87
commit 0716cf84c0
45 changed files with 374 additions and 428 deletions

View File

@@ -7,14 +7,12 @@
******************************************************************************
*/
#include "xenia/base/fs.h"
#include "xenia/base/filesystem.h"
#include <string>
#include <vector>
#include <algorithm>
namespace xe {
namespace fs {
namespace filesystem {
std::string CanonicalizePath(const std::string& original_path) {
char path_sep('\\');
@@ -178,5 +176,5 @@ bool WildcardEngine::Match(const std::string& str) const {
return true;
}
} // namespace fs
} // namespace filesystem
} // namespace xe

View File

@@ -7,18 +7,17 @@
******************************************************************************
*/
#ifndef XENIA_BASE_FS_H_
#define XENIA_BASE_FS_H_
#ifndef XENIA_BASE_FILESYSTEM_H_
#define XENIA_BASE_FILESYSTEM_H_
#include <iterator>
#include <string>
#include <vector>
#include "xenia/base/string.h"
#include <vector>
#include <iterator>
namespace xe {
namespace fs {
namespace filesystem {
bool PathExists(const std::wstring& path);
@@ -73,7 +72,7 @@ class WildcardEngine {
void PreparePattern(const std::string& pattern);
};
} // namespace fs
} // namespace filesystem
} // namespace xe
#endif // XENIA_BASE_FS_H_
#endif // XENIA_BASE_FILESYSTEM_H_

View File

@@ -7,7 +7,7 @@
******************************************************************************
*/
#include "xenia/base/fs.h"
#include "xenia/base/filesystem.h"
#include <shellapi.h>
@@ -16,7 +16,7 @@
#include "xenia/base/platform.h"
namespace xe {
namespace fs {
namespace filesystem {
bool PathExists(const std::wstring& path) {
DWORD attrib = GetFileAttributes(path.c_str());
@@ -73,5 +73,5 @@ std::vector<FileInfo> ListFiles(const std::wstring& path) {
return result;
}
} // namespace fs
} // namespace filesystem
} // namespace xe