@@ -3316,7 +3316,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3316
3316
return ( mod && mod . __esModule ) ? mod : { "default" : mod } ;
3317
3317
} ;
3318
3318
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
3319
- exports . applyExcludeFilter = exports . applyFolderFiltersToSubItems = exports . getDefaultSettings = exports . Timer = exports . Timings = exports . retryRequest = exports . formatNumber = exports . pluralize = exports . Logger = void 0 ;
3319
+ exports . applyExcludeFilter = exports . getDefaultSettings = exports . Timer = exports . Timings = exports . retryRequest = exports . formatNumber = exports . pluralize = exports . Logger = void 0 ;
3320
3320
const pretty_ms_1 = __importDefault ( __nccwpck_require__ ( 1127 ) ) ;
3321
3321
const module_1 = __nccwpck_require__ ( 8347 ) ;
3322
3322
const types_1 = __nccwpck_require__ ( 6703 ) ;
@@ -3463,21 +3463,12 @@ function getDefaultSettings(withoutDefaults) {
3463
3463
"state-name" : ( _e = withoutDefaults [ "state-name" ] ) !== null && _e !== void 0 ? _e : ".ftp-deploy-sync-state.json" ,
3464
3464
"dry-run" : ( _f = withoutDefaults [ "dry-run" ] ) !== null && _f !== void 0 ? _f : false ,
3465
3465
"dangerous-clean-slate" : ( _g = withoutDefaults [ "dangerous-clean-slate" ] ) !== null && _g !== void 0 ? _g : false ,
3466
- "exclude" : applyFolderFiltersToSubItems ( ( _h = withoutDefaults . exclude ) !== null && _h !== void 0 ? _h : module_1 . excludeDefaults ) ,
3466
+ "exclude" : ( _h = withoutDefaults . exclude ) !== null && _h !== void 0 ? _h : module_1 . excludeDefaults ,
3467
3467
"log-level" : ( _j = withoutDefaults [ "log-level" ] ) !== null && _j !== void 0 ? _j : "standard" ,
3468
3468
"security" : ( _k = withoutDefaults . security ) !== null && _k !== void 0 ? _k : "loose" ,
3469
3469
} ;
3470
3470
}
3471
3471
exports . getDefaultSettings = getDefaultSettings ;
3472
- /**
3473
- * automatically exclude all sub-files/sub-folders if we exclude a folder.
3474
- * For example "test/" should also exclude "test/file.txt"
3475
- * to do this we add "**" to all folder paths
3476
- */
3477
- function applyFolderFiltersToSubItems ( excludeFilters ) {
3478
- return excludeFilters . map ( filter => filter . endsWith ( "/" ) ? `${ filter } **` : filter ) ;
3479
- }
3480
- exports . applyFolderFiltersToSubItems = applyFolderFiltersToSubItems ;
3481
3472
function applyExcludeFilter ( stat , excludeFilters ) {
3482
3473
// match exclude, return immediatley
3483
3474
if ( excludeFilters . length > 0 ) {
0 commit comments