aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2023-06-28 14:19:57 +1000
committerGitHub <noreply@github.com>2023-06-28 14:19:57 +1000
commitdac271df8c540a8b27b7728268e597d8223f4928 (patch)
treee5c1a70cf447911944adaa2d991630257e60c946
parenta0bcc4281cb9996f088fe7b93a49396b7fce8753 (diff)
parentc24e70c766901881c479fa7a8780d143268136c9 (diff)
downloadxbmc-dac271df8c540a8b27b7728268e597d8223f4928.tar.xz
Merge pull request #22929 from CastagnaIT/fix_cache_zip_nexus
[backport][Addons][Filesystem] No cache, not treat compressed files as directory
-rw-r--r--xbmc/addons/interfaces/Filesystem.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/xbmc/addons/interfaces/Filesystem.cpp b/xbmc/addons/interfaces/Filesystem.cpp
index 49e66b2860..c063b48fd6 100644
--- a/xbmc/addons/interfaces/Filesystem.cpp
+++ b/xbmc/addons/interfaces/Filesystem.cpp
@@ -167,7 +167,7 @@ bool Interface_Filesystem::can_open_directory(void* kodiBase, const char* url)
}
CFileItemList items;
- return CDirectory::GetDirectory(url, items, "", DIR_FLAG_DEFAULTS);
+ return CDirectory::GetDirectory(url, items, "", DIR_FLAG_DEFAULTS | DIR_FLAG_BYPASS_CACHE);
}
bool Interface_Filesystem::create_directory(void* kodiBase, const char* path)
@@ -193,7 +193,7 @@ bool Interface_Filesystem::directory_exists(void* kodiBase, const char* path)
return false;
}
- return CDirectory::Exists(path);
+ return CDirectory::Exists(path, false);
}
bool Interface_Filesystem::remove_directory(void* kodiBase, const char* path)
@@ -208,7 +208,7 @@ bool Interface_Filesystem::remove_directory(void* kodiBase, const char* path)
// Empty directory
CFileItemList fileItems;
- CDirectory::GetDirectory(path, fileItems, "", DIR_FLAG_DEFAULTS);
+ CDirectory::GetDirectory(path, fileItems, "", DIR_FLAG_NO_FILE_DIRS | DIR_FLAG_BYPASS_CACHE);
for (int i = 0; i < fileItems.Size(); ++i)
CFile::Delete(fileItems.Get(i)->GetPath());
@@ -260,7 +260,8 @@ bool Interface_Filesystem::get_directory(void* kodiBase,
}
CFileItemList fileItems;
- if (!CDirectory::GetDirectory(path, fileItems, mask, DIR_FLAG_NO_FILE_DIRS))
+ if (!CDirectory::GetDirectory(path, fileItems, mask,
+ DIR_FLAG_NO_FILE_DIRS | DIR_FLAG_BYPASS_CACHE))
return false;
if (fileItems.Size() > 0)