mod-io-functions
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | mod-io-functions [2020/05/06 16:12] (current) – created maxime | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Mod IO functions ====== | ||
+ | |||
+ | All these functions are available on your mod object | ||
+ | |||
+ | ===== fileExists ===== | ||
+ | |||
+ | Checks if a file exists in the mod directory. | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== directoryExists ===== | ||
+ | |||
+ | Checks if a directory exists in the mod directory | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== readFileAsString ===== | ||
+ | |||
+ | Reads a whole file as a single string | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== writeFileAsString ===== | ||
+ | |||
+ | Writes a string in a file | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== createDirectory ===== | ||
+ | |||
+ | Creates a directory in the mod directory | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== moveFile ===== | ||
+ | |||
+ | Moves/ | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== deleteFile ===== | ||
+ | |||
+ | Deletes a file within the mod directory | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== deleteDirectory ===== | ||
+ | |||
+ | Deletes a directory and all its content within the mod directory | ||
+ | |||
+ | Returns '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | //'' | ||
mod-io-functions.txt · Last modified: 2020/05/06 16:12 by maxime