import Client , { CommandResultMetaData , CommandStatus , UploadFolderCommand , } from "../client" ; ( async ( ) => { const client = new Client ( ) ; const folderName = "c:\\Users\\holger\\Documents\\GitHub\\nextcloud-node-client\\src\\test\\data\\Borstenson\\Company" ; const uc = new UploadFolderCommand ( client , { folderName } ) ; await uc . execute ( ) ; const uploadResult = uc . getResultMetaData ( ) ; if ( uc . getStatus ( ) === CommandStatus . success ) { console . log ( uploadResult . messages ) ; } else { console . log ( uploadResult . errors ) ; } } ) ( ) ;