@@ -3626,7 +3626,7 @@ class FTPSyncProvider {
36263626}
36273627catch ( e ) {
36283628// this error is common when a file was deleted on the server directly
3629- if ( e . code === types_1 . ErrorCode . FileNotFoundOrNoAccess ) {
3629+ if ( ( e === null || e === void 0 ? void 0 : e . code ) === types_1 . ErrorCode . FileNotFoundOrNoAccess ) {
36303630this . logger . standard ( "File not found or you don't have access to the file - skipping..." ) ;
36313631}
36323632else {
@@ -3643,7 +3643,17 @@ class FTPSyncProvider {
36433643const absoluteFolderPath = "/" + ( this . serverPath . startsWith ( "./" ) ?this . serverPath . replace ( "./" , "" ) :this . serverPath ) + folderPath ;
36443644this . logger . all ( `removing folder "${ absoluteFolderPath } "` ) ;
36453645if ( this . dryRun === false ) {
3646- yield ( 0 , utilities_1 . retryRequest ) ( this . logger , ( ) => __awaiter ( this , void 0 , void 0 , function * ( ) { return yield this . client . removeDir ( absoluteFolderPath ) ; } ) ) ;
3646+ try {
3647+ yield ( 0 , utilities_1 . retryRequest ) ( this . logger , ( ) => __awaiter ( this , void 0 , void 0 , function * ( ) { return yield this . client . removeDir ( absoluteFolderPath ) ; } ) ) ;
3648+ }
3649+ catch ( e ) {
3650+ if ( ( e === null || e === void 0 ?void 0 :e . code ) === types_1 . ErrorCode . FileNotFoundOrNoAccess ) {
3651+ this . logger . standard ( "Directory not found or you don't have access to the file - skipping..." ) ;
3652+ }
3653+ else {
3654+ throw e ;
3655+ }
3656+ }
36473657}
36483658this . logger . verbose ( ` completed` ) ;
36493659} ) ;