We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 010e8b9 commit 73c92c2Copy full SHA for 73c92c2
.changeset/cyan-zoos-smash.md
@@ -0,0 +1,5 @@
1
+---
2
+"@squarecloud/api": minor
3
4
+
5
+New `Application#files#edit` method for editing files
src/managers/application/files.ts
@@ -69,6 +69,17 @@ export class ApplicationFilesManager {
69
return status === "success";
70
}
71
72
+ /**
73
+ * Edits an existing file (same as create)
74
+ *
75
+ * @param file - The file content
76
+ * @param fileName - The file name with extension
77
+ * @param path - The absolute file path
78
+ */
79
+ async edit(file: string | Buffer, path = "/") {
80
+ return this.create(file, "", path);
81
+ }
82
83
/**
84
* Deletes the specified file or directory
85
*
0 commit comments