Merge pull request #1753 from hunbernd/New-Posted-Card-View

New posted card view enhancements
This commit is contained in:
csoler 2020-02-01 18:50:27 +01:00 committed by GitHub
commit c6643613b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 3088 additions and 468 deletions

View file

@ -254,7 +254,13 @@ int RsDirUtil::breakupDirList(const std::string& path,
/**** Copied and Tweaked from ftcontroller ***/
bool RsDirUtil::fileExists(const std::string& filename)
{
#ifdef WINDOWS_SYS
std::wstring wfilename;
librs::util::ConvertUtf8ToUtf16(filename, wfilename);
return ( _waccess( wfilename.c_str(), F_OK ) != -1 );
#else
return ( access( filename.c_str(), F_OK ) != -1 );
#endif
}
bool RsDirUtil::moveFile(const std::string& source,const std::string& dest)