mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-29 19:06:24 +02:00
feat: add seedFolderMtimes API for seeding file modification times during folder synchronization
This commit is contained in:
parent
e8c2377824
commit
d009d06432
6 changed files with 48 additions and 0 deletions
|
|
@ -65,6 +65,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|||
getPendingFileEvents: () => ipcRenderer.invoke(IPC_CHANNELS.FOLDER_SYNC_GET_PENDING_EVENTS),
|
||||
acknowledgeFileEvents: (eventIds: string[]) => ipcRenderer.invoke(IPC_CHANNELS.FOLDER_SYNC_ACK_EVENTS, eventIds),
|
||||
listFolderFiles: (config: any) => ipcRenderer.invoke(IPC_CHANNELS.FOLDER_SYNC_LIST_FILES, config),
|
||||
seedFolderMtimes: (folderPath: string, mtimes: Record<string, number>) =>
|
||||
ipcRenderer.invoke(IPC_CHANNELS.FOLDER_SYNC_SEED_MTIMES, folderPath, mtimes),
|
||||
|
||||
// Browse files via native dialog
|
||||
browseFiles: () => ipcRenderer.invoke(IPC_CHANNELS.BROWSE_FILES),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue