File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -714,6 +714,39 @@ const App = () => {
714714 color = { inprogress ? 'green' : 'blue' }
715715 />
716716 </ View >
717+ < View style = { styles . section } >
718+ < Button
719+ title = { inprogress ? 'Getting...' : 'Get Folder Size' }
720+ onPress = { async ( ) => {
721+ try {
722+ if ( initComplete ) {
723+ fula . checkConnection ( ) . then ( ( r : any ) => {
724+ console . log ( 'connection check' ) ;
725+ console . log ( r ) ;
726+ if ( r ) {
727+ console . log (
728+ 'initialization is completed. send Foldersize command'
729+ ) ;
730+ fxblox
731+ . getFolderSize ( '/uniondrive/chain' )
732+ . then ( ( res : any ) => {
733+ console . log ( 'Foldersize received' ) ;
734+ console . log ( res ) ;
735+ } )
736+ . catch ( ( e : any ) => {
737+ console . log ( 'Foldersize failed' ) ;
738+ console . log ( e ) ;
739+ } ) ;
740+ }
741+ } ) ;
742+ } else {
743+ console . log ( 'wait for init to complete' ) ;
744+ }
745+ } catch ( e ) { }
746+ } }
747+ color = { inprogress ? 'green' : 'blue' }
748+ />
749+ </ View >
717750 < View style = { styles . section } >
718751 < Button
719752 title = { inprogress ? 'Getting...' : 'Get Node Logs' }
You can’t perform that action at this time.
0 commit comments