Exclude patterns with file.directory recursion #67426
Replies: 14 comments
-
|
@pirxthepilot, thanks for the report. This does not seem to be currently possible. As a workaround you could do a three step process, one state to copy the directory into a temporary location, another to remove the excludes and a third to put it in place. |
Beta Was this translation helpful? Give feedback.
-
|
@jfindlay cool, I will try the method you suggested. And thanks for marking this as a feature - looking forward to it! |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
|
At a glance, there doesn't look to have been any progress here so far. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
|
I'm having a similar issue. I'm trying to recursively set owner/permissions, but I need to exclude some files and/or directories (which need different permissions). I don't have a specific list of files that need to be set, but instead need to set all files except a specific list. For example, set user to userA for all files in a directory tree, except subdirectory X, which will have owner userB. There doesn't appear to be a way to do this properly with states. I can create a state that recursively applies owner/permissions on the base directory, and also create subsequent states that correct nested files and/or directories. It's possible to get the correct end result, but |
Beta Was this translation helpful? Give feedback.
-
|
I also need this feature |
Beta Was this translation helpful? Give feedback.
-
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
|
I don't think there has been any progress so far. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
|
I would like this feature. |
Beta Was this translation helpful? Give feedback.
-
|
I'd still like this feature, please. |
Beta Was this translation helpful? Give feedback.
-
|
hello |
Beta Was this translation helpful? Give feedback.
-
|
I still think this would be a good feature. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'd like to exclude certain files and folders from a recursive
file.directorystate, but couldn't find a mechanism for doing so. I thoughtexclude_patwould do the trick but it looks like it only works forclean.Could anyone point me in the right direction? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions