JS: Add storage.append()

This commit is contained in:
Willy-JL
2024-03-12 06:15:09 +00:00
parent b47b43bfb9
commit 66dc7e9aa9
2 changed files with 34 additions and 1 deletions

View File

@@ -4,10 +4,13 @@ let path = "/ext/storage.test";
print("File exists:", storage.exists(path));
print("Writing...");
storage.write(path, "Hello World!");
storage.write(path, "Hello ");
print("File exists:", storage.exists(path));
// Append will create the file even if it doesnt exist!
storage.append(path, "World!");
print("Reading...");
let data = storage.read(path);
print(data);