All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.11.0 - 2024-12-11
- support patch 2.2
0.10.0 - 2024-09-13
- support patch 2.13
0.9.4 - 2024-07-20
- use Unicode charset for path when resolving game's directory.
0.9.3 - 2024-07-14
RedData.Json
is now optional when installingRedFileSystem
.
0.9.2 - 2024-06-28
- support any path of execution when resolving game's directory (Vortex / MO2).
0.9.1 - 2024-06-04
- blacklist with file
__folder_managed_by_vortex
to hide it and prevent access fromFileSystemStorage
.
0.9.0 - 2024-06-02
- method to delete a file from storage with
DeleteFile
.
- support MO2.
0.8.0 - 2024-05-17
- asynchronous read/write operations with
AsyncFile
. - callback handling with
FilePromise
when operation passes/fails. - common storage in
<game>/r6/storages/shared/
to share files between mods. It can be accessed withFileSystem.GetSharedStorage()
without restrictions.
- migrate storages from
<game>/red4ext/plugins/RedFileSystem/storages/
to<game>/r6/storages/
at startup. - read/write operations with
File
are now thread safe. - the name
shared
when usingFileSystem.GetStorage()
is now reserved and forbidden.
- storage is revoked when using case-insensitive names.
0.7.1 - 2024-05-12
- issue when using files listed with method
GetFiles
.
0.7.0 - 2024-05-08
- method
GetFiles
to list files present in a storage.
0.6.0 - 2024-04-26
- optional indent argument when writing Json to format output.
- now using
WriteJson
format output as minified Json by default.
0.5.0 - 2024-04-16
- Json read/write functions are now undefined when 'RedData.Json' is not present.
- declaration of module 'RedFileSystem'.
0.4.0 - 2024-04-09
- Json dependency with plugin RedData.
- Json classes and implementations, now powered by
RedData
.
0.3.0 - 2024-03-04
- use a storage per mod to read/write files.
- move features from
FileSystem
toFileSystemStorage
.
- restrict all read/write operations within
red4ext\plugins\RedFileSystem\storages\
. - revoke all operations of a storage when getting it multiple times.
This version is not compatible with v0.2.0 and below, see the README and
examples/
to migrate your code.
0.2.0 - 2024-03-01
- support patch v2.12
0.1.0 - 2024-03-01
- test whether a file/directory exists or not.
- test whether a path points to a regular file.
- read text / lines / json from files.
- write text / lines / json to files (truncate or append).
- read / write / stringify Json data.