mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Clarify truncation behavior in file open modes
This commit is contained in:
parent
e67074d0ab
commit
4c4d8b39f1
1 changed files with 2 additions and 2 deletions
|
@ -580,14 +580,14 @@
|
|||
Opens the file for read operations. The file cursor is positioned at the beginning of the file.
|
||||
</constant>
|
||||
<constant name="WRITE" value="2" enum="ModeFlags">
|
||||
Opens the file for write operations. The file is created if it does not exist, and truncated if it does.
|
||||
Opens the file for write operations. If the file exists, it is truncated to zero length and its contents are cleared. Otherwise, it is created.
|
||||
[b]Note:[/b] When creating a file it must be in an already existing directory. To recursively create directories for a file path, see [method DirAccess.make_dir_recursive].
|
||||
</constant>
|
||||
<constant name="READ_WRITE" value="3" enum="ModeFlags">
|
||||
Opens the file for read and write operations. Does not truncate the file. The file cursor is positioned at the beginning of the file.
|
||||
</constant>
|
||||
<constant name="WRITE_READ" value="7" enum="ModeFlags">
|
||||
Opens the file for read and write operations. The file is created if it does not exist, and truncated if it does. The file cursor is positioned at the beginning of the file.
|
||||
Opens the file for read and write operations. If the file exists, it is truncated to zero length and its contents are cleared. Otherwise, it is created. The file cursor is positioned at the beginning of the file.
|
||||
[b]Note:[/b] When creating a file it must be in an already existing directory. To recursively create directories for a file path, see [method DirAccess.make_dir_recursive].
|
||||
</constant>
|
||||
<constant name="COMPRESSION_FASTLZ" value="0" enum="CompressionMode">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue