Quick fix for accessing files in the pck file for FileCaches.

This commit is contained in:
Relintai 2023-03-22 14:30:07 +01:00
parent b92d4f19ca
commit 53ddc7796f
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ void FileCache::wwwroot_refresh_cache() {
_registered_files.clear();
if (_wwwroot_orig != "") {
_wwwroot = DirAccess::get_filesystem_abspath_for(_wwwroot_orig);
_wwwroot = _wwwroot_orig;//DirAccess::get_filesystem_abspath_for(_wwwroot_orig);
_wwwroot = _wwwroot.path_clean_end_slash();
wwwroot_evaluate_dir(_wwwroot);

View File

@ -138,7 +138,7 @@ void PagedArticleWebPage::load() {
void PagedArticleWebPage::_load() {
ERR_FAIL_COND_MSG(articles_folder == "", "Error: PagedArticleWebPage::load called, but a articles_folder is not set!");
_articles_folder_abs = DirAccess::get_filesystem_abspath_for(articles_folder);
_articles_folder_abs = articles_folder;//DirAccess::get_filesystem_abspath_for(articles_folder);
_articles_folder_abs = _articles_folder_abs.path_ensure_end_slash();
DirAccess *dir = DirAccess::open(_articles_folder_abs);