MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / getCopyMoveDelete

Function getCopyMoveDelete

modAssist_main.js:147–163  ·  view source on GitHub ↗
(operation, modIDS, multiSource = null, fileList = null, zipImport = false)

Source from the content-addressed store, hash-verified

145}
146
147function getCopyMoveDelete(operation, modIDS, multiSource = null, fileList = null, zipImport = false) {
148 if ( modIDS === null || modIDS.length !== 0 ) {
149 const isHolding = modIDS !== null ? serveIPC.storeNote.get(`${modIDS[0].split('--')[0]}.notes_holding`, false) : false
150 return {
151 isHoldingPen : isHolding,
152 isZipImport : zipImport === false ? false : zipImport[0],
153 multiDestination : isHolding && ( operation === 'copy' || operation === 'move' ),
154 multiSource : multiSource,
155 operation : operation,
156 originCollectKey : modIDS !== null ? modIDS[0].split('--')[0] : '',
157 rawFileList : fileList,
158 records : modIDS !== null ? serveIPC.modCollect.modColUUIDsToRecords(modIDS) : [],
159 zipFiles : zipImport === false || zipImport[0] === false ? null : zipImport[1],
160 }
161 }
162 return null
163}
164
165// MARK: folder manage
166ipcMain.handle('folders:activate', async (_, CKey) => funcLib.gameSet.change(CKey) )

Callers 2

modAssist_main.jsFile · 0.85
sendCopyMoveDeleteFunction · 0.85

Calls 2

modColUUIDsToRecordsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected