|
#!perl
use 5.10.0;
sub _compressProfile {
return join "" , grep {
s/\r//g;
s/\t/ /g;
if (/^\s/) {
s/\n//;
s/^ (?=<(?!\/))/\n/;
s/^( )+//;
}
/\S/;
} split /^/, shift ;
}
sub _retrieveTimeMetadataChanges {
my ( $path , $content ) = @_ ;
given ( $path ) {
when (/\.profile|\.permissionset/) {
$content = _compressProfile $content ;
}
}
return $content ;
}
our @folders = (
{ type => 'Document' , folder => 'unfiled$public' },
{ type => 'EmailTemplate' , folder => 'unfiled$public' },
{ type => 'Report' , folder => 'unfiled$public' },
);
1;
|