diff --git a/library/files/file b/library/files/file index dd17b9ca02..6ec5e96de2 100644 --- a/library/files/file +++ b/library/files/file @@ -178,7 +178,7 @@ def main(): if src: src = os.path.expanduser(src) - if src is not None and os.path.isdir(path) and state != "link": + if src is not None and os.path.isdir(path) and state not in ["link", "absent"]: params['path'] = path = os.path.join(path, os.path.basename(src)) file_args = module.load_file_common_arguments(params)