MCPcopy Create free account
hub / github.com/PleasureTools/joyBox / PrepareFileSystem

Method PrepareFileSystem

backend/Src/main.ts:246–253  ·  view source on GitHub ↗

* Prepares the file system if necessary. * ├── data/ * ├── archive/ * ├── thumbnail/

()

Source from the content-addressed store, hash-verified

244 * ├── thumbnail/
245 */
246 public PrepareFileSystem() {
247 if (!fs.existsSync(ARCHIVE_FOLDER)) {
248 fs.mkdirSync(ARCHIVE_FOLDER);
249 fs.mkdirSync(THUMBNAIL_FOLDER);
250 } else if (!fs.existsSync(THUMBNAIL_FOLDER)) {
251 fs.mkdirSync(THUMBNAIL_FOLDER);
252 }
253 }
254
255 public LoadData(): void {
256 const pluginState = this.storage.FetchPlugins();

Callers 1

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected