summaryrefslogtreecommitdiffstats
path: root/modules/zip/doc_classes
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-08-16 14:01:58 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-08-16 15:10:32 +0200
commitf7fa72c808fb5221213f45fef3a2977b9e74278a (patch)
tree1f6eb9ea60330586fe88166f5b54afcce8146e9b /modules/zip/doc_classes
parent90f90cbcb0cf2c44a3114048accfd5b407c4ac98 (diff)
downloadredot-engine-f7fa72c808fb5221213f45fef3a2977b9e74278a.tar.gz
Add function `ZIPReader::file_exists`
Diffstat (limited to 'modules/zip/doc_classes')
-rw-r--r--modules/zip/doc_classes/ZIPReader.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/zip/doc_classes/ZIPReader.xml b/modules/zip/doc_classes/ZIPReader.xml
index 0fa2672044..bf596806b2 100644
--- a/modules/zip/doc_classes/ZIPReader.xml
+++ b/modules/zip/doc_classes/ZIPReader.xml
@@ -25,6 +25,15 @@
Closes the underlying resources used by this instance.
</description>
</method>
+ <method name="file_exists">
+ <return type="bool" />
+ <param index="0" name="path" type="String" />
+ <param index="1" name="case_sensitive" type="bool" default="true" />
+ <description>
+ Returns [code]true[/code] if the file exists in the loaded zip archive.
+ Must be called after [method open].
+ </description>
+ </method>
<method name="get_files">
<return type="PackedStringArray" />
<description>