|
@@ -7817,10 +7817,10 @@ return {
|
|
{
|
|
{
|
|
name = "write",
|
|
name = "write",
|
|
summary = "Write to a file.",
|
|
summary = "Write to a file.",
|
|
- description = "Write to a file.",
|
|
|
|
|
|
+ description = "Write to a file in the save directory.",
|
|
key = "lovr.filesystem.write",
|
|
key = "lovr.filesystem.write",
|
|
module = "lovr.filesystem",
|
|
module = "lovr.filesystem",
|
|
- notes = "If the file does not exist, it is created.\n\nIf the file already has data in it, it will be replaced with the new content.",
|
|
|
|
|
|
+ notes = "If the file does not exist, it is created.\n\nIf the file already has data in it, it will be replaced with the new content.\n\nIf the path contains subdirectories, all of the parent directories need to exist first or the write will fail. Use `lovr.filesystem.createDirectory` to make sure they're created first.",
|
|
variants = {
|
|
variants = {
|
|
{
|
|
{
|
|
arguments = {
|
|
arguments = {
|
|
@@ -7867,6 +7867,7 @@ return {
|
|
},
|
|
},
|
|
related = {
|
|
related = {
|
|
"lovr.filesystem.append",
|
|
"lovr.filesystem.append",
|
|
|
|
+ "lovr.filesystem.getSaveDirectory",
|
|
"lovr.filesystem.read"
|
|
"lovr.filesystem.read"
|
|
}
|
|
}
|
|
}
|
|
}
|