File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -126,5 +126,10 @@ const urls = {
126126 * Executes rclone in a seperate process for output
127127 */
128128 coreCommand : "core/command" ,
129+
130+ /**
131+ * Transferred jobs for rclone.
132+ */
133+ transferred : 'core/transferred' ,
129134} ;
130135export default urls ;
Original file line number Diff line number Diff line change @@ -345,3 +345,18 @@ export const coreCommand = ( arg, opt) => {
345345 } )
346346 } ) ;
347347}
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