diff options
author | fuzzard <fuzzard@users.noreply.github.com> | 2023-06-28 14:19:57 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 14:19:57 +1000 |
commit | dac271df8c540a8b27b7728268e597d8223f4928 (patch) | |
tree | e5c1a70cf447911944adaa2d991630257e60c946 | |
parent | a0bcc4281cb9996f088fe7b93a49396b7fce8753 (diff) | |
parent | c24e70c766901881c479fa7a8780d143268136c9 (diff) | |
download | xbmc-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.cpp | 9 |
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) |