mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-23 15:00:13 +00:00
23 lines
442 B
JavaScript
23 lines
442 B
JavaScript
|
let storage = require("storage");
|
||
|
let path = "/ext/storage.test";
|
||
|
|
||
|
print("File exists:", storage.exists(path));
|
||
|
|
||
|
print("Writing...");
|
||
|
storage.write(path, "Hello World!");
|
||
|
|
||
|
print("File exists:", storage.exists(path));
|
||
|
|
||
|
print("Reading...");
|
||
|
let data = storage.read(path);
|
||
|
print(data);
|
||
|
|
||
|
print("Removing...")
|
||
|
storage.remove(path);
|
||
|
|
||
|
print("Done")
|
||
|
|
||
|
// There's also:
|
||
|
// storage.virtualInit(path);
|
||
|
// storage.virtualMount();
|
||
|
// storage.virtualQuit();
|