mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-06 07:50:00 +01:00
Bugfix: prevent selection of previous file if does not exists anymore.
This commit is contained in:
@@ -237,6 +237,9 @@ string SystemToolkit::full_filename(const std::string& path, const string &filen
|
||||
|
||||
bool SystemToolkit::file_exists(const string& path)
|
||||
{
|
||||
if (path.empty())
|
||||
return false;
|
||||
|
||||
return access(path.c_str(), R_OK) == 0;
|
||||
|
||||
// TODO : WIN32 implementation
|
||||
|
||||
Reference in New Issue
Block a user