File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -126,5 +126,10 @@ const urls = {
126
126
* Executes rclone in a seperate process for output
127
127
*/
128
128
coreCommand : "core/command" ,
129
+
130
+ /**
131
+ * Transferred jobs for rclone.
132
+ */
133
+ transferred : 'core/transferred' ,
129
134
} ;
130
135
export default urls ;
Original file line number Diff line number Diff line change @@ -345,3 +345,18 @@ export const coreCommand = ( arg, opt) => {
345
345
} )
346
346
} ) ;
347
347
}
348
+
349
+
350
+ /**
351
+ * getTransferredStats returns transferred job stats.
352
+ * @returns {Promise<unknown> }
353
+ */
354
+ export const getTransferredStats = ( ) => {
355
+ return new Promise ( ( resolve , reject ) => {
356
+ axiosInstance . post ( urls . transferred ) . then ( res => {
357
+ resolve ( res . data ) ;
358
+ } , error => {
359
+ reject ( error ) ;
360
+ } )
361
+ } )
362
+ }
You can’t perform that action at this time.
0 commit comments