|
|
@ -1929,8 +1929,8 @@ This will become a hard error in the future.''' % kwargs['input'], location=self |
|
|
|
|
|
|
|
|
|
|
|
@FeatureNewKwargs('subdir', '0.44.0', ['if_found']) |
|
|
|
@FeatureNewKwargs('subdir', '0.44.0', ['if_found']) |
|
|
|
@permittedKwargs({'if_found'}) |
|
|
|
@permittedKwargs({'if_found'}) |
|
|
|
def func_subdir(self, node, args, kwargs): |
|
|
|
@typed_pos_args('subdir', str) |
|
|
|
self.validate_arguments(args, 1, [str]) |
|
|
|
def func_subdir(self, node: mparser.BaseNode, args: T.Tuple[str], kwargs: 'TYPE_kwargs') -> None: |
|
|
|
mesonlib.check_direntry_issues(args) |
|
|
|
mesonlib.check_direntry_issues(args) |
|
|
|
if '..' in args[0]: |
|
|
|
if '..' in args[0]: |
|
|
|
raise InvalidArguments('Subdir contains ..') |
|
|
|
raise InvalidArguments('Subdir contains ..') |
|
|
|