aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | readlink() parameters should not alias each otherMartin Ridgers2021-09-291-10/+12
| | | | | |
| * | | | | Fixed signed/unsigned mismatched warnings from GCCMartin Ridgers2021-09-291-1/+1
| | | | | |
* | | | | | Check available disk space before GC.Per Larsson2021-12-051-0/+21
| | | | | |
* | | | | | fs: minor logging cleanupStefan Boberg2021-11-021-3/+1
| |_|_|_|/ |/| | | |
* | | | | filesystem: Improved test for GetRunningExecutablePath (still not ideal)Stefan Boberg2021-10-291-1/+1
| |_|_|/ |/| | |
* | | | Added another test exe name to GetExePath testStefan Boberg2021-10-081-2/+2
| |_|/ |/| |
* | | Merged from upstreamStefan Boberg2021-10-051-1/+8
| | |
* | | filesystem: Added FileContents::Flatten() and ensured it's possible to ↵Stefan Boberg2021-10-011-0/+17
| |/ |/| | | | | #include filesystem.h standalone
* | Clang format fix.Per Larsson2021-10-011-1/+1
| |
* | Merge branch 'main' of https://github.com/EpicGames/zenStefan Boberg2021-09-291-1/+2
|\|
| * Prevent mesh tests to crash by moving behind define.Per Larsson2021-09-291-1/+2
| |
* | filesystem: Fixed issue with FindClose potentially closing an invalid handleStefan Boberg2021-09-291-2/+2
|/
* Merged latest from mainStefan Boberg2021-09-271-44/+39
|\
| * Removed some unnecessary filesystem wrapper functions which accepted wchar* ↵Stefan Boberg2021-09-251-19/+11
| | | | | | | | | | | | arguments Also moved some platform specific functionality into Windows conditional sections
* | Merged main into linux-macMartin Ridgers2021-09-211-5/+5
|\|
| * Moved more code into zen namespace, for consistencyStefan Boberg2021-09-201-5/+5
| | | | | | | | Also removed snapshot_manifest (remnants of vfs prototype)
* | Fixed "unreferenced formal parameter" warningMartin Ridgers2021-09-161-2/+2
| |
* | Deleted unused FilePath variableMartin Ridgers2021-09-161-2/+0
| |
* | Make sure RootDir argument to formatted-print is a UTF8 stringMartin Ridgers2021-09-161-1/+1
| |
* | There is no need to go to a wstring here as fs::path is already oneMartin Ridgers2021-09-161-3/+1
| |
* | Simple FileSystemTraversal test caseMartin Ridgers2021-09-161-0/+23
| |
* | ToUtf8() for non-wchar_t platformsMartin Ridgers2021-09-161-0/+4
| |
* | Implemented FileSysTraversal for Linux using open/read/closedir()Martin Ridgers2021-09-161-0/+47
| |
* | Missing include for getpid()Martin Ridgers2021-09-161-0/+1
| |
* | POSIX implementation of ReadFile()Martin Ridgers2021-09-161-3/+20
| |
* | POSIX implementation of WriteFile()Martin Ridgers2021-09-161-1/+30
| |
* | Stubbed out seldom-used *File() functions with a ZEN_ERROR() for LinuxMartin Ridgers2021-09-161-0/+19
| |
* | Non-Windows implementation of Clean/DeleteDirectory() using std::fsMartin Ridgers2021-09-161-0/+22
| |
* | The wchar_t variants of directory functions are now only enabled on WindowsMartin Ridgers2021-09-161-6/+10
| |
* | Fixed up platform-specific includesMartin Ridgers2021-09-161-5/+9
| |
* | Merge from mainMartin Ridgers2021-09-161-0/+2
|\|
| * Unused variable warning fixStefan Boberg2021-09-151-0/+2
| |
* | Added a simple filesystem test caseMartin Ridgers2021-09-161-0/+42
| |
* | Implemented GetRunningExecutablePath() for LinuxMartin Ridgers2021-09-161-0/+13
| |
* | Implemented PathFromHandle() for LinuxMartin Ridgers2021-09-161-0/+13
|/
* Changed logging implementationStefan Boberg2021-09-151-2/+2
| | | | | | * Code should no longer directly `#include spdlog/spdlog.h`, instead use `#include <zencore/logging.h>` * Instead of explicit calls to `spdlog::info(...)` and such please use the logging macros defined in `zencore/logging.h`. I.e `ZEN_INFO`, `ZEN_DEBUG`, `ZEN_TRACE`, `ZEN_ERROR`, `ZEN_CRITITCAL` * The macros will pick up the "most local" logger via a `Log()` call to retrieve a logger instance. To override the default logger in a class please implement your own `Log()` function
* Changed direct includes of spdlog/spdlog.h into zencore/logging.h to make it ↵Stefan Boberg2021-09-151-2/+1
| | | | easier to tweak implementation
* Fixed a number of unreferenced variable warningsStefan Boberg2021-09-091-2/+0
|
* Format fix.Per Larsson2021-08-311-2/+1
|
* Added WriteFile() overload which accepts a single IoBufferStefan Boberg2021-08-281-4/+18
|
* Added support for defining test/non-test server environmentsStefan Boberg2021-08-061-1/+1
|
* Added GetRunningExecutablePath()Stefan Boberg2021-08-061-0/+9
|
* Fixed FileSystemTraversal::TraverseFileSystem error reporting issueStefan Boberg2021-06-181-1/+4
|
* Cleaned up exception handlingStefan Boberg2021-05-211-3/+3
| | | | We now use std::system_error where possible to report Win32 system errors. We still have WindowsException for general HRESULT based errors but we should phase it out where possible
* Added PathFromHandle helper functionStefan Boberg2021-05-111-0/+18
| | | | Primarily to be used to add context to error messages in places where we only have a handle available
* Adding zenservice codeStefan Boberg2021-05-111-0/+592