Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/lib/file/file_system.h
/* Copyright (C) 2018 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* | * | ||||
* Permission is hereby granted, free of charge, to any person obtaining | * Permission is hereby granted, free of charge, to any person obtaining | ||||
* a copy of this software and associated documentation files (the | * a copy of this software and associated documentation files (the | ||||
* "Software"), to deal in the Software without restriction, including | * "Software"), to deal in the Software without restriction, including | ||||
* without limitation the rights to use, copy, modify, merge, publish, | * without limitation the rights to use, copy, modify, merge, publish, | ||||
* distribute, sublicense, and/or sell copies of the Software, and to | * distribute, sublicense, and/or sell copies of the Software, and to | ||||
* permit persons to whom the Software is furnished to do so, subject to | * permit persons to whom the Software is furnished to do so, subject to | ||||
* the following conditions: | * the following conditions: | ||||
Show All 15 Lines | |||||
*/ | */ | ||||
#ifndef INCLUDED_FILE_SYSTEM | #ifndef INCLUDED_FILE_SYSTEM | ||||
#define INCLUDED_FILE_SYSTEM | #define INCLUDED_FILE_SYSTEM | ||||
#include "lib/os_path.h" | #include "lib/os_path.h" | ||||
#include "lib/posix/posix_filesystem.h" // mode_t | #include "lib/posix/posix_filesystem.h" // mode_t | ||||
#include <vector> | |||||
LIB_API bool DirectoryExists(const OsPath& path); | LIB_API bool DirectoryExists(const OsPath& path); | ||||
LIB_API bool FileExists(const OsPath& pathname); | LIB_API bool FileExists(const OsPath& pathname); | ||||
LIB_API u64 FileSize(const OsPath& pathname); | LIB_API u64 FileSize(const OsPath& pathname); | ||||
// (bundling size and mtime avoids a second expensive call to stat()) | // (bundling size and mtime avoids a second expensive call to stat()) | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator